blob: 23f38ffefef6c3a0f0ad52e155f85caa08d9532b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#pragma once
#include "global.h"
#include "conn_data.h"
// Protocol version 4 adds the 'sendat' command; if the client reports not to
// support sendat, we just disable that command. In this manner, we continue to
// support protocol version 3.
#define PROTOCOL_VERSION 4
#define MIN_SUPPORTED_PROTOCOL_VERSION 3
// 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);
|