您的位置:首页 > 其它

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

2015-12-21 20:22 471 查看
【以太网数据结构】系列文章链接

http://blog.csdn.net/u012819339/article/category/5849175

OICQ数据包格式



协议字段解释:

标识:固定为0x02

版本号:协议版本

命令:

命令字解释命令字解释
1log out2hert message
4跟新用户信息5搜索用户
6获取用户信息9不需认证方式添加好友
10删除好友11需要认证的方式添加好友
13设置隐身、示忙等状态18确认收到系统消息
22发送消息23receive message
29request key39get friend online
60group name operation62memo operation
88download group operation92get level
101request extra information103signature operation
代码

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

[code]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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: