QQ2003的通讯协议(十六进制的,抄别人的):
const
QQ_LOGIN_DATA_LENGTH = 69;
QQ_PACKET_TAG = $02; // 发送消息时的定义字符(用在最前面)
QQ_PACKET_TAIL = $03; // 所有QQ发送消息使用的结束字符(用在最后面)
QQ_LOGIN_MODE_NORMAL = $0A;
QQ_LOGIN_MODE_HIDDEN = $28;
QQ_CMD_KEEP_ALIVE = $0002; //保持连接
QQ_CMD_GET_USER_INFO = $0006; // 获得使用者通知
QQ_CMD_ACK_SYS_MSG = $0012; //正确应答系统消息
QQ_CMD_SEND_IM = $0016; //发送消息
QQ_CMD_RECV_IM = $0017; //收到消息
QQ_CMD_LOGIN = $0022; // 登录
QQ_CMD_GET_FRIENDS_LIST = $0026; //恢复我的朋友列表
QQ_CMD_GET_FRIENDS_ONLINE = $0027; //获得我的联机朋友列表
QQ_CMD_RECV_IM_SYS = $0080; //收到系统消息
QQ_CMD_IM_STATUS_CHANGE = $0081; //朋友改变状态
QQ_LOGIN_REPLY_OK = $00;
QQ_LOGIN_REPLY_REDIRECT = $01;
QQ_LOGIN_REPLY_PWD_ERROR = $02;
QQ_SEND_IM_REPLY_OK = $00;
QQ_RECV_IM_TO_BUDDY = $0009;
QQ_RECV_IM_TO_UNKNOWN = $000A;
QQ_SERVER_0100 = $0100; //服务器
QQ_CLIENT =$0A1D; //$0B37; { QQ 2003 III }
QQ_INFO_FIELD_COUNT = 36;