diff options
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(); |
