代码拉取完成,页面将自动刷新
CoolQ Socket API written in VC++.
You can use my cqbot written in python 3.
The communication between server and clients is sending UDP frame to each other.
The server listens on port 11235
.
Clients should send ClientHello
frame to inform server of client port.
ClientHello
frame must be sent on startup and every (at most) 5 minutes.
A UDP frame contains one Prefix and multiple Fields. Prefix and Fields are joined by one space.
Frame = Prefix (max 256) + Payload (max 32768)
Prefix = 'PrivateMessage'
Payload = QQ + EncodedText
Prefix = 'GroupMessage'
Payload = GroupID + QQ + EncodedText
Prefix = 'DiscussMessage'
Payload = DiscussID + QQ + EncodedText
Prefix = 'GroupMemberDecrease'
Payload = GroupID + QQ + OperatedQQ
Prefix = 'GroupMemberIncrease'
Payload = GroupID + QQ + OperatedQQ
EncodedText = base64_encode( GBK_encode( text ) )
Frame = Prefix (max 256) + Payload (max 32768)
Prefix = 'ClientHello'
Payload = Port
Prefix = 'PrivateMessage'
Payload = QQ + EncodedText
Prefix = 'GroupMessage'
Payload = GroupID + EncodedText
Prefix = 'DiscussMessage'
Payload = DiscussID + EncodedText
EncodedText = base64_encode( GBK_encode( text ) )
GroupMessage 123456 10000 dGVzdCCy4srU
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。