44 #define NETCODE_SURRENDER 0x21 |
44 #define NETCODE_SURRENDER 0x21 |
45 #define NETCODE_REMIS 0x22 |
45 #define NETCODE_REMIS 0x22 |
46 #define NETCODE_CHECK 0x23 |
46 #define NETCODE_CHECK 0x23 |
47 #define NETCODE_CHECKMATE 0x24 |
47 #define NETCODE_CHECKMATE 0x24 |
48 |
48 |
49 #define NETCODE_VERSION 4 |
49 #define NETCODE_VERSION 5 |
50 |
50 |
51 typedef struct { |
51 typedef struct { |
52 int fd; /* -1, if we are the client */ |
52 int fd; /* -1, if we are the client */ |
53 struct sockaddr address; |
53 struct sockaddr address; |
54 socklen_t address_len; |
54 socklen_t address_len; |