aboutsummaryrefslogtreecommitdiff
path: root/command.h
diff options
context:
space:
mode:
authorTom Smeding <tom.smeding@gmail.com>2020-06-28 22:18:57 +0200
committerTom Smeding <tom.smeding@gmail.com>2020-06-28 22:18:57 +0200
commitb85c1a60bf7f27e37fe2a86b26aa83ff198e208e (patch)
treeeac45cf0a5c0f24ac04f6d07dd20504370cd0af9 /command.h
parentf2f4f0d94a5280e15d89c25832825bb3ce65d2fd (diff)
server/protocol: Protocol version negotiation
Diffstat (limited to 'command.h')
-rw-r--r--command.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/command.h b/command.h
index 3b01f42..e1226a5 100644
--- a/command.h
+++ b/command.h
@@ -4,6 +4,10 @@
#include "conn_data.h"
+#define PROTOCOL_VERSION 1
+#define MIN_SUPPORTED_PROTOCOL_VERSION 1
+
+
// 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);