net.sf.jqql.packets.in._05
Class RequestFaceReplyPacket
java.lang.Object
net.sf.jqql.packets.Packet
net.sf.jqql.packets.InPacket
net.sf.jqql.packets._05InPacket
net.sf.jqql.packets.in._05.RequestFaceReplyPacket
public class RequestFaceReplyPacket
- extends _05InPacket
apply custom face reply packet
1. head
2. unknown 8 byte, same as request packet
3. session id, 4 byte
-------- encode begin ------
4. unknown 4 byte, all 0
-------- encode end --------
5. tail
请求自定义表情的回å¤åŒ…:
1. 头部
2. 未知的8å—节,和请求包一致
3. session id, 4å—节
----- åŠ å¯†å¼€å§‹ --------
4. 未知4å—节,全0
------ åŠ å¯†ç»“æŸ ------
5. 尾部
- 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 |
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
RequestFaceReplyPacket
public RequestFaceReplyPacket(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
如果解æžå‡ºé”™
decryptBody
protected byte[] decryptBody(byte[] body,
int offset,
int length)
- Description copied from class:
Packet
- decrypt packet body
解密包体
- Overrides:
decryptBody
in class _05InPacket
- Parameters:
body
- byte array of packet body
包体å—节数组offset
- offset of packet body begin
包体开始åç§»length
- packet length
包体长度
- Returns:
- 解密的包体å—节数组 // byte array of decrypted packet body