JML

net.sf.jqql.packets.in._03
Class GetCustomHeadInfoReplyPacket

java.lang.Object
  extended by net.sf.jqql.packets.Packet
      extended by net.sf.jqql.packets.InPacket
          extended by net.sf.jqql.packets._03InPacket
              extended by net.sf.jqql.packets.in._03.GetCustomHeadInfoReplyPacket

public class GetCustomHeadInfoReplyPacket
extends _03InPacket

 apply custom head reply packet
 1. head
 2. unknown 4 byte
 3. unknown 4 byte
 4. length of content behind, 2 byte, exclusive
 5. unknown 2 byte, often  0x0002
 6. custom head info count, 2 byte
 7. friend's QQ number, 4 byte
 8. custom head timestamp, 4 byte
 9. custom head MD5, 16 byte
 10. If there are more custom head info, repeat par 7 to 9

 请求自定义头像的回复包
 1. 包头
 2. 未知的4字节
 3. 未知的4字节
 4. 后面的内容长度,2字节,exclusive
 5. 未知的2字节,一般是0x0002
 6. 自定义头像信息个数,2字节
 7. 好友QQ号,4字节
 8. 自定义头像时间戳,4字节
 9. 自定义头像MD5,16字节
 10. 如果有更多自定义头像信息,重复7-9部分
 

Author:
luma

Field Summary
 List<CustomHead> heads
           
 
Fields inherited from class net.sf.jqql.packets._03InPacket
currentFragment, serialNumber, totalFragment
 
Fields inherited from class net.sf.jqql.packets.Packet
bodyBuf, bodyDecrypted, command, crypter, ds, duplicated, header, log, sequence, source, user
 
Constructor Summary
GetCustomHeadInfoReplyPacket(ByteBuffer buf, int length, QQUser user)
           
 
Method Summary
 String getPacketName()
           
protected  void parseBody(ByteBuffer buf)
          parse packet body, from begin position of buf 解析包体,从buf的开头位置解析起
 
Methods inherited from class net.sf.jqql.packets._03InPacket
decryptBody, encryptBody, equals, getBodyBytes, getCryptographStart, getFamily, getHeadLength, getLength, getTailLength, parseHeader, parseTail, putBody, putHead, putTail, toString
 
Methods inherited from class net.sf.jqql.packets.InPacket
validateHeader
 
Methods inherited from class net.sf.jqql.packets.Packet
dump, getCommand, getHeader, getSequence, getSource, hash, hashCode, isDuplicated, setDuplicated, setHeader, setSequence
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

heads

public List<CustomHead> heads
Constructor Detail

GetCustomHeadInfoReplyPacket

public GetCustomHeadInfoReplyPacket(ByteBuffer buf,
                                    int length,
                                    QQUser user)
                             throws PacketParseException
Throws:
PacketParseException
Method Detail

getPacketName

public String getPacketName()
Overrides:
getPacketName in class Packet
Returns:
descriptive name of packet 包的描述性名称

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 如果解析出错

JML