diff options
| author | Aldrik Ramaekers <aldrikboy@gmail.com> | 2024-05-15 10:23:02 +0200 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrikboy@gmail.com> | 2024-05-15 10:23:02 +0200 |
| commit | c6763223b8b0c3f78edb6ac759c14f08375b438f (patch) | |
| tree | d6f2619346fb33b72c8e09078664465ecf1c3720 /include/protocol.h | |
| parent | 8cc0540b60f6af4cad99060e8cb0b5920b96e52b (diff) | |
join game menu
Diffstat (limited to 'include/protocol.h')
| -rw-r--r-- | include/protocol.h | 9 |
1 files changed, 9 insertions, 0 deletions
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(); |
