From c6763223b8b0c3f78edb6ac759c14f08375b438f Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Wed, 15 May 2024 10:23:02 +0200 Subject: join game menu --- include/protocol.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include/protocol.h') diff --git a/include/protocol.h b/include/protocol.h index 9ca7226..d89952c 100644 --- a/include/protocol.h +++ b/include/protocol.h @@ -8,6 +8,8 @@ typedef enum t_network_message_type { + MESSAGE_PING_UPSTREAM, + MESSAGE_PING_DOWNSTREAM, MESSAGE_GET_ID_UPSTREAM, MESSAGE_GET_ID_DOWNSTREAM, MESSAGE_USER_LIST, @@ -48,6 +50,12 @@ typedef struct t_protocol_get_id_downstream u32 id; } protocol_get_id_downstream; +typedef struct t_protocol_ping_downstream +{ + network_message_type type; + char program_version[30]; +} protocol_ping_downstream; + typedef struct t_protocol_user_list { network_message_type type; @@ -166,6 +174,7 @@ allocator server_incomming_allocator; allocator client_incomming_allocator; allocator outgoing_allocator; +network_message create_protocol_ping_downstream(); network_message create_protocol_get_id_up(u32 id); network_message create_protocol_get_id_down(u32 id); network_message create_protocol_sound_list(); -- cgit v1.2.3-70-g09d2