41 #define NETCODE_DECLINE 0x01 |
41 #define NETCODE_DECLINE 0x01 |
42 #define NETCODE_GAMEINFO 0x10 |
42 #define NETCODE_GAMEINFO 0x10 |
43 #define NETCODE_MOVE 0x20 |
43 #define NETCODE_MOVE 0x20 |
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 |
|
47 #define NETCODE_CHECKMATE 0x24 |
46 |
48 |
47 #define NETCODE_VERSION 3 |
49 #define NETCODE_VERSION 4 |
48 |
50 |
49 typedef struct { |
51 typedef struct { |
50 int fd; /* -1, if we are the client */ |
52 int fd; /* -1, if we are the client */ |
51 struct sockaddr address; |
53 struct sockaddr address; |
52 socklen_t address_len; |
54 socklen_t address_len; |