src/network.h

changeset 25
3ab0c2e1a4e2
parent 22
41bbfd4d17a3
child 32
8a0b85303ee8
equal deleted inserted replaced
24:4d030da07c88 25:3ab0c2e1a4e2
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 46 #define NETCODE_CHECK 0x23
47 #define NETCODE_CHECKMATE 0x24 47 #define NETCODE_CHECKMATE 0x24
48 48 #define NETCODE_STALEMATE 0x25
49 #define NETCODE_VERSION 6 49
50 #define NETCODE_VERSION 7
50 51
51 typedef struct { 52 typedef struct {
52 int fd; /* -1, if we are the client */ 53 int fd; /* -1, if we are the client */
53 struct sockaddr address; 54 struct sockaddr address;
54 socklen_t address_len; 55 socklen_t address_len;

mercurial