1 2 /* Network protocol for synchronization and keystrokes */ 3 4 #define SYNC_MSG 0x00 /* Sent during game */ 5 #define NEW_GAME 0x01 /* Sent by players at start */ 6 #define NET_ABORT 0x04 /* Used with address server */ 7 #define KEY_PRESS 0x80 /* Sent during game */ 8 #define KEY_RELEASE 0xF0 /* Sent during game */ 9 10 /* * * * * * * * 11 This stuff is shared between netplay.cc and netplayd 12 */ 13 /* The default port for Maelstrom games. What is 0xAEAE?? *shrug* :) */ 14 #define NETPLAY_PORT 0xAEAE /* port 44718 */ 15 16 /* The minimum length of a new packet buffer */ 17 #define NEW_PACKETLEN (3+3*4) 18 19 /* Note: if you change MAX_PLAYERS, you need to modify the gPlayerColors 20 array in player.cc 21 */ 22 #define MAX_PLAYERS 3 /* No more than 255!! */ 23 24