| 31 #define TCHESS_NETWORK_H |
31 #define TCHESS_NETWORK_H |
| 32 |
32 |
| 33 #include <sys/socket.h> |
33 #include <sys/socket.h> |
| 34 #include <stdint.h> |
34 #include <stdint.h> |
| 35 |
35 |
| 36 #ifdef __cplusplus |
|
| 37 extern "C" { |
|
| 38 #endif |
|
| 39 |
|
| 40 #define NETCODE_ACCEPT 0x01 |
36 #define NETCODE_ACCEPT 0x01 |
| 41 #define NETCODE_DECLINE 0x02 |
37 #define NETCODE_DECLINE 0x02 |
| 42 #define NETCODE_GAMEINFO 0x10 |
38 #define NETCODE_GAMEINFO 0x10 |
| 43 #define NETCODE_PGNDATA 0x11 |
39 #define NETCODE_PGNDATA 0x11 |
| 44 #define NETCODE_MOVE 0x20 |
40 #define NETCODE_MOVE 0x20 |