net.sf.jqql.packets.in._05
Class RequestBeginReplyPacket
java.lang.Object
net.sf.jqql.packets.Packet
net.sf.jqql.packets.InPacket
net.sf.jqql.packets._05InPacket
net.sf.jqql.packets.in._05.RequestBeginReplyPacket
public class RequestBeginReplyPacket
- extends _05InPacket
apply begin send reply packet
1. head
2. unknown 8 byte, same as request packet
3. session id. 4 byte
--------begin encode -------
4. unknown 1 byte, when apply to send, it's 0x04, when to receive, it's 0x00
5. unknown 1 byte, when apply to send, it's 0x4C, when to receive, it's 0x00
6. unknown 2 byte, all 0
7. unknown 2 byte, 0xC350
8. unknown 2 byte, 0xEA60
9. unknown 4 byte
------- encode end -----
10. tail
请求开始传送的回复包
1. 头部
2. 未知的8字节,和请求包一致
3. session id, 4字节
-------- 加密开始 --------
4. 未知1字节,请求发送时是0x04,请求接收时是0x00
5. 未知1字节,请求发送时是0x4C,请求接收时是0x00
6. 未知2字节,全0
7. 未知2字节,0xC350
8. 未知2字节,0xEA60
9. 未知4字节
-------- 加密结束 --------
10. 尾部
- Author:
- luma
Fields inherited from class net.sf.jqql.packets.Packet |
bodyBuf, bodyDecrypted, command, crypter, ds, duplicated, header, log, sequence, source, user |
Methods inherited from class net.sf.jqql.packets._05InPacket |
decryptBody, encryptBody, getBodyBytes, getFamily, getHeadLength, getLength, getQqNum, getTailLength, parseHeader, parseTail, putBody, putHead, putTail, setQqNum, toString |
Methods inherited from class net.sf.jqql.packets.Packet |
dump, equals, getCommand, getHeader, getSequence, getSource, hash, hashCode, isDuplicated, setDuplicated, setHeader, setSequence |
sessionId
public int sessionId
RequestBeginReplyPacket
public RequestBeginReplyPacket(ByteBuffer buf,
int length,
QQUser user)
throws PacketParseException
- Parameters:
buf
- length
- user
-
- Throws:
PacketParseException
getPacketName
public String getPacketName()
- Overrides:
getPacketName
in class _05InPacket
- Returns:
- descriptive name of packet
包的描述性名称
getCryptographStart
protected int getCryptographStart()
- Specified by:
getCryptographStart
in class Packet
- Returns:
- start position of cryptograph, relative to the first byte of packet body.
if this packet is unknown packet, return -1, this method only available to some protocol family.
密文的起始位置,这个位置是相对于包体的第一个字节来说的,如果这个包是未知包,
返回-1,这个方法只对某些协议族有意义
parseBody
protected void parseBody(ByteBuffer buf)
throws PacketParseException
- Description copied from class:
Packet
- parse packet body, from begin position of buf
解析包体,从buf的开头位置解析起
- Specified by:
parseBody
in class Packet
- Parameters:
buf
- ByteBuffer
- Throws:
PacketParseException
- if parse error
如果解析出错