src/network.h

changeset 163
2a6d83f4677e
parent 131
c33567d61ba7
equal deleted inserted replaced
162:f0fc70b6f8f9 163:2a6d83f4677e
52 #define NETCODE_TIMEOVER 0x44 52 #define NETCODE_TIMEOVER 0x44
53 #define NETCODE_AGAIN 0x70 53 #define NETCODE_AGAIN 0x70
54 #define NETCODE_CONNLOST 0x80 54 #define NETCODE_CONNLOST 0x80
55 #define NETCODE_ERROR 0xFF 55 #define NETCODE_ERROR 0xFF
56 56
57 #define NETCODE_VERSION 20 57 #define NETCODE_VERSION 21
58 58
59 typedef struct { 59 typedef struct {
60 int fd; /* -1, if we are the client */ 60 int fd; /* -1, if we are the client */
61 struct sockaddr address; 61 struct sockaddr address;
62 socklen_t address_len; 62 socklen_t address_len;

mercurial