src/network.h

changeset 33
866025982aa9
parent 32
8a0b85303ee8
child 34
c4d4b8a8f902
equal deleted inserted replaced
32:8a0b85303ee8 33:866025982aa9
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 #define NETCODE_STALEMATE 0x25 48 #define NETCODE_STALEMATE 0x25
49 #define NETCODE_TIMEOVER 0x26
49 50
50 #define NETCODE_VERSION 10 51 #define NETCODE_VERSION 11
51 52
52 typedef struct { 53 typedef struct {
53 int fd; /* -1, if we are the client */ 54 int fd; /* -1, if we are the client */
54 struct sockaddr address; 55 struct sockaddr address;
55 socklen_t address_len; 56 socklen_t address_len;

mercurial