From 7f53c301576f5c76bc39b7fcc8fb80f7162ead88 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Mon, 27 Jul 2020 13:16:56 +1000 Subject: [PATCH] libei: add a HELLO message on connect This allows for some negotiation - server sends hello with some magic auth data, client sends connect with the reply to the hello. Not sure yet how or whether this makes sense, but at least it makes testing easy. Signed-off-by: Peter Hutterer --- src/libei.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/libei.h b/src/libei.h index 5efb113..4ae4ac3 100644 --- a/src/libei.h +++ b/src/libei.h @@ -63,6 +63,10 @@ enum ei_event_type { * return value for ei_next_event_type(). */ EI_EVENT_NONE = 0, + /** + * Message sent by the server immediately on connect. + */ + EI_EVENT_HELLO, /** * The server has approved the connection to this client. */