1 /* $Id: icq_tcp.h 1585 2003-10-09 13:09:11Z kuhlmann $ */ 2 3 #ifdef ENABLE_PEER2PEER 4 #define TCP_OK_FLAG 0x04 5 6 /* Packets */ 7 #define PEER_INIT 0xff 8 #define PEER_INITACK 0x01 9 #define PEER_INIT2 0x03 10 #define PEER_MSG 0x02 11 12 /* Commands */ 13 #define TCP_CMD_CANCEL 2000 14 #define TCP_CMD_ACK 2010 15 #define TCP_CMD_MESSAGE 2030 16 17 /* Miscellaneous */ 18 #define TCP_MSG_X1 0x000E 19 #define TCP_MSG_QUEUE 10 20 21 #else 22 #define TCP_OK_FLAG 0x00 23 #endif 24 25 /* Status flags */ 26 #define TCP_MSGF_1 0x0001 27 #define TCP_MSGF_CLIST 0x0004 28 #define TCP_MSGF_REAL 0x0010 29 #define TCP_MSGF_LIST 0x0020 30 #define TCP_MSGF_URGENT 0x0040 31 #define TCP_MSGF_INV 0x0080 32 #define TCP_MSGF_AWAY 0x0100 33 #define TCP_MSGF_OCC 0x0200 34 #define TCP_MSGF_NA 0x0800 35 #define TCP_MSGF_DND 0x1000 36 37 /* Acknowledge statuses */ 38 #define TCP_ACK_ONLINE 0x0000 39 #define TCP_ACK_REFUSE 0x0001 40 #define TCP_ACK_AWAY 0x0004 41 #define TCP_ACK_OCC 0x0009 42 #define TCP_ACK_DND 0x000A 43 #define TCP_ACK_NA 0x000E 44 45 #define TCP_COL_FG 0x00000000 /* Foreground colour in msg body */ 46 #define TCP_COL_BG 0x00FFFFFF /* Background colour in msg body */ 47