src/network.h

changeset 11
08d7a6e3ec31
parent 7
41468077b5bb
child 18
6008840b859e
equal deleted inserted replaced
10:1347e4dabac0 11:08d7a6e3ec31
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;

mercurial