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 <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2020-07-27 13:16:56 +10:00
parent 91781ad3e0
commit 7f53c30157

View file

@ -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.
*/