#ifndef _PROTOCOL_H_c16f7710_ #define _PROTOCOL_H_c16f7710_ extern const char magic[]; extern const int magiclen; #define MAGIC_DIR_CLIENT 0x63 #define MAGIC_DIR_SERVER 0x73 #define GAME_FLAG_CLOSED 0x00 #define JOINSTAT_WORKED 0x00 #define JOINSTAT_NOTMEETING 0x01 #define JOINSTAT_NOTFOUND 0x02 #define JOINSTAT_BADPASS 0x03 #define JOINSTAT_NOTJOINED 0x04 #define XFOP_MIRROR_X 0x00 #define XFOP_MIRROR_Y 0x01 #define XFOP_SWAP_X_Y 0x02 #define PLAYFAIL_NOT_YOUR_TURN 0x00 #define PLAYFAIL_PIECE_ALREADY_PLAYED 0x01 #define PLAYFAIL_OFF_BOARD 0x02 #define PLAYFAIL_OVERLAP_PLAYED 0x03 #define PLAYFAIL_NO_CORNER_TOUCH 0x04 #define PLAYFAIL_EDGE_TOUCH 0x05 #define PLAYFAIL_NO_CORNER_COVER 0x06 #define PLAYFAIL_BAD_TRANSFORM 0x07 #define PLAYFAIL_BAD_PIECE_ID 0x08 #define CHATSTAT_WORKED 0x00 #define CHATSTAT_NOTFOUND 0x01 #define MSGKIND_ALL 0x00 #define MSGKIND_PRIVATE 0x01 #endif