diff -r 6220074cb760 -r 5f58df30d422 src/network.h --- a/src/network.h Thu Apr 23 12:26:53 2026 +0200 +++ b/src/network.h Mon Apr 27 16:55:28 2026 +0200 @@ -48,9 +48,11 @@ #define NETCODE_RESIGN 0x41 #define NETCODE_REMIS 0x42 #define NETCODE_TIMEOVER 0x44 +#define NETCODE_AGAIN 0x70 #define NETCODE_CONNLOST 0x80 +#define NETCODE_ERROR 0xFF -#define NETCODE_VERSION 16 +#define NETCODE_VERSION 17 typedef struct { int fd; /* -1, if we are the client */ @@ -77,6 +79,7 @@ void net_send_code(int socket, uint8_t code); void net_send_data(int socket, uint8_t code, void *data, size_t len); uint8_t net_recieve_code(int socket); +uint8_t net_recieve_code_async(int socket); void net_recieve_data(int socket, void *data, size_t len); #ifdef __cplusplus