【以太网数据包】OICQ数据包(QQ)

【以太网数据结构】系列文章链接
http://blog.csdn.net/u012819339/article/category/5849175

OICQ数据包格式

【以太网数据包】OICQ数据包(QQ)_第1张图片

协议字段解释:
标识:固定为0x02
版本号:协议版本
命令:

命令字 解释 命令字 解释
1 log out 2 hert message
4 跟新用户信息 5 搜索用户
6 获取用户信息 9 不需认证方式添加好友
10 删除好友 11 需要认证的方式添加好友
13 设置隐身、示忙等状态 18 确认收到系统消息
22 发送消息 23 receive message
29 request key 39 get friend online
60 group name operation 62 memo operation
88 download group operation 92 get level
101 request extra information 103 signature operation

代码
自己写个该数据包报头结构体:

typedef _oicqhdr {
 uint8_t flag;
 uint16_t ver;
 uint16_t command;
 uint16_t sequence;
 uint32_t qq;
} __attribute__((packed)) oicqhdr;

【以太网数据结构】系列文章见
http://blog.csdn.net/u012819339/article/category/5849175

你可能感兴趣的:(qq,以太网,TCP-IP)