aboutsummaryrefslogtreecommitdiff
path: root/main.c
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 /main.c
parentf2f4f0d94a5280e15d89c25832825bb3ce65d2fd (diff)
server/protocol: Protocol version negotiation
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.c b/main.c
index 77237bf..78c98cb 100644
--- a/main.c
+++ b/main.c
@@ -125,6 +125,8 @@ static bool server_socket_callback(int fd){
}
static bool timeout_callback(int fd){
+ // Note: this does not check the protocol version. If the protocol changes
+ // significantly regarding push messages, perhaps that should change.
return net_send_raw_text(fd,"_push ping\n",11);
}