aboutsummaryrefslogtreecommitdiff
path: root/command.h
blob: ebfec8cee61827056fd9495e408c5c39e017c739 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#pragma once

#include "global.h"
#include "conn_data.h"


#define PROTOCOL_VERSION 2
#define MIN_SUPPORTED_PROTOCOL_VERSION 2


// Returns true if socket should be closed.
// Modifies some bytes in `line`, AS WELL AS line[linelen]!
bool handle_input_line(struct conn_data *data,char *line,size_t linelen);