home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 13 / AACD13.ISO / AACD / Online / StrICQ / Src / cmd_codes.h < prev    next >
C/C++ Source or Header  |  1999-05-21  |  7KB  |  147 lines

  1. /**************************************************************************
  2. * cmd_codes.h                                                             *
  3. * Command codes                                                           *
  4. **************************************************************************/
  5.  
  6.  
  7. #ifndef _CMD_CODES_H
  8. #define _CMD_CODES_H
  9.  
  10.  
  11. /* ICQ client commands */
  12.  
  13. #define C_ACK                0x000A      /* acknowledgement */
  14. #define C_ACK_MSG            0x0442         /* Ack message (delete from server) */
  15. #define C_SEND_MESSAGE       0x010E      /* send message to offline user */
  16. #define C_LOGIN              0x03E8      /* login on server */
  17. #define C_CONTACT_LIST       0x0406      /* Inform the server of cont. list */
  18. #define C_SEARCH_UIN         0x041A      /* search for user by UIN */
  19. #define C_SEARCH_USER        0x0424      /* search for user by name/email */
  20. #define C_KEEP_ALIVE         0x042E      /* keep alive */
  21. #define C_SEND_TEXT_CODE     0x0438      /* send special message to server */
  22. #define C_LOGIN_1            0x044C      /* Sent during login */
  23. #define C_INFO_REQ           0x0460      /* Request basic information */
  24. #define C_EXT_INFO_REQ       0x046A      /* Request extended information */
  25. #define C_CHANGE_PASSWORD    0x049C      /* Change the user's password */
  26. #define C_STATUS_CHANGE      0x04D8      /* Change status of user (Away etc.) */
  27. #define C_LOGIN_2            0x0528      /* Sent during Login */
  28. /**/
  29. #define C_UPDATE_INFO        0x050A      /* Update my basic information */
  30. #define C_UPDATE_EXT_INFO    0x04B0      /* Update my extended information */
  31. #define C_ADD_TO_LIST        0x053C      /* Add user to contact list (clist)*/
  32. #define C_REQ_ADD_TO_LIST    0x0456      /* Request auth to add to clist */
  33. #define C_QUERY_STATUS       0x04BA      /* Query about other servers */
  34. #define C_QUERY_ADDONS       0x04C4      /* Query about global add-ons */
  35. #define C_NEW_USER_1         0x04EC      /* Ask for permission to add new usr */
  36. #define C_NEW_USER_REG       0x03FC      /* Register a new user */
  37. #define C_CMD_X1             0x0442      /* Uknown */
  38. #define C_MSG_TO_NEW_USER    0x0456      /* Send a message to not in clist */
  39. /**/
  40. #define C_SEND_URL_MESSAGE   0x04F6      /* Request server advertisement */
  41. #define C_LOGIN_3            0x04CE      /* Sent during login */
  42. #define C_NEW_USER_INFO      0x04A6      /* Send new user's basic information */
  43. #define C_UPDATE_AUTH        0x0514      /* Update my authorization status */
  44. #define C_VIS_LIST           0x06AE      /* Command to use for 'See Me Invisible' */
  45. #define C_INVIS_LIST         0x06A4      /* Command to use for 'Make Me Invisible' */
  46. #define C_META_INFO_REQ      0x064A      /* Request extended extended (META) information */
  47.  
  48. /* ICQ server commands */
  49.  
  50. #define S_ACK                0x000A      /* Ack */
  51. #define S_LOGIN_REPLY        0x005A      /* Login reply */
  52. #define S_USER_ONLINE        0x006E      /* user in clist changed status */
  53. #define S_USER_OFFLINE       0x0078      /* user in clist has gone offline */
  54. #define S_USER_FOUND         0x008C      /* user record found matching query */
  55. #define S_RECEIVE_MESSAGE    0x00DC      /* message sent while offline */
  56. #define S_GET_MESSAGE        0x0104         /* message from user (sent throu server) */
  57. #define S_END_OF_SEARCH      0x00A0      /* No more USER_FOUND will be sent */
  58. #define S_INFO_REPLY         0x0118      /* Return basic information */
  59. #define S_EXT_INFO_REPLY     0x0122      /* Return extended information */
  60. #define S_STATUS_UPDATE      0x01A4      /* User on contact list changed stat */
  61. #define S_GO_AWAY            0x0028         /* Been idle, logging you out */
  62. /**/
  63. #define S_REPLY_X1           0x021C      /* Unknown (returned during login) */
  64. #define S_END_OFFLINE_MSGS   0x00E6      /* The last offline message has been sent */
  65. #define S_UPDATE_REPLY       0x01E0      /* Confirmation of basic update */
  66. #define S_UPDATE_EXT_REPLY   0x00C8      /* Confirmation of extended update */
  67. #define S_NEW_USER_UIN       0x0046      /* Confirmation of new user with UIN */
  68. #define S_NEW_USER_REPLY     0x00B4      /* Confirmation of new user info */
  69. #define S_QUERY_REPLY        0x0082      /* Response to QUERY_SERVERS or QUERY_ADDONS */
  70. #define S_SYSTEM_MESSAGE     0x01C2      /* System message with URL button */
  71. /**/
  72. #define S_BAD_PASSWORD       0x0064      /* Bad password sent during login */
  73. #define S_UPDATE_AUTH_REPLY  0x01F4      /* Confirmation of Authorization update */
  74. #define S_TOO_BUSY           0x00FA      /* Server is busy try again later */
  75. #define S_TCP_REQUEST        0x015E      /* TCP connection request sent thru server */
  76. #define S_INFO_NOT_FOUND     0x012C      /* User's basic information not found */
  77. #define S_EXT_INFO_NOT_FOUND 0x0136      /* User's extended information not found */
  78.  
  79. /* Available status codes */
  80.  
  81. #define STAT_ONLINE          0x00000000
  82. #define STAT_AWAY            0x00000001
  83. #define STAT_DND_2           0x00000003
  84. #define STAT_NA              0x00000005
  85. #define STAT_DND_3           0x00000010
  86. #define STAT_OCCUPIED        0x00000011
  87. #define STAT_DND             0x00000013
  88. #define STAT_FREE_CHAT       0x00000020
  89. #define STAT_INVISIBLE       0x00000100
  90. #define STAT_ONLINE_99       0x00000200
  91. #define STAT_AWAY_99         0x00000201
  92. #define STAT_NA_99           0x00000204
  93. #define STAT_OCCUPIED_99     0x00000210
  94. #define STAT_FREE_CHAT_99    0x00000220
  95. #define STAT_NEWUIN          0x000000FE
  96. #define STAT_OFFLINE         0x0000FFFF
  97.  
  98. #define STAT_HIDEIP          0x00020000
  99. #define STAT_WEBPRESENCE     0x00010000
  100.  
  101. /* TCP client to client commands */
  102.  
  103. /* TCP Message Commands */
  104.  
  105. #define TCP_CANCEL           0x07D0
  106. #define TCP_ACK              0x07DA
  107. #define TCP_MESSAGE          0x07EE
  108.  
  109. /* TCP Message Types */
  110.  
  111. #define TCP_MSG_MSG          0x0001
  112. #define TCP_MSG_CHAT         0x0002
  113. #define TCP_MSG_FILE         0x0003
  114. #define TCP_MSG_URL          0x0004
  115. #define TCP_MSG_ADDUIN       0x0013
  116. #define TCP_MSG_READAWAY     0x03E8
  117. #define TCP_MSG_READOCCUPIED 0x03E9
  118. #define TCP_MSG_READNA       0x03EA
  119. #define TCP_MSG_READDND      0x03EB
  120. #define TCP_MSG_READFFC      0x03EC
  121. #define TCP_MSG_UNK_2        0x0802
  122.  
  123. /* TCP Message Command Types */
  124.  
  125. #define TCP_MSG_INVISIBLE    0x0090
  126. #define TCP_MSG_UNK_1        0x00A0
  127. #define TCP_MSG_AWAY         0x0110
  128. #define TCP_MSG_UNK_3        0x0120
  129. #define TCP_MSG_UNK_4        0x0140
  130. #define TCP_MSG_OCCUPIED     0x0210
  131. #define TCP_MSG_NA           0x0810
  132. #define TCP_MSG_NA_2         0x0820
  133. #define TCP_MSG_DND          0x1010
  134.  
  135. /* TCP Message Status' */
  136.  
  137. #define TCP_STAT_ONLINE      0x0000
  138. #define TCP_STAT_REFUSE      0x0001
  139. #define TCP_STAT_AWAY        0x0004
  140. #define TCP_STAT_OCCUPIED    0x0009
  141. #define TCP_STAT_DND         0x000A
  142. #define TCP_STAT_NA          0x000E
  143. #define TCP_STAT_FREE_CHAT   TCP_STAT_ONLINE
  144. #define TCP_STAT_INVISIBLE   TCP_STAT_ONLINE
  145.  
  146. #endif
  147.