net.sf.jqql.packets.out._03
Class GetCustomHeadDataPacket
java.lang.Object
net.sf.jqql.packets.Packet
net.sf.jqql.packets.OutPacket
net.sf.jqql.packets._03OutPacket
net.sf.jqql.packets.out._03.GetCustomHeadDataPacket
public class GetCustomHeadDataPacket
- extends _03OutPacket
apply to get coustom head data
1. head
2. unknown 4 byte
3. unknonw 4 byte
4. length of content behind, 2 byte, exclusive
5. friend's QQ number, 4 byte
6. unknown 1 byte, often 0x01
7. custom head timestamp, 4 byte
8. position to begin to get data, 4 byte
Note: When init, set 0xFFFFFFFF to apply all the data
9. data length to get, 4 byte
Note: When apply, set 00x00000000 to apply all the data
请求得到自定义头像数据:
1. 包头
2. 未知4字节
3. 未知4字节
4. 后面内容的长度,2字节,exclusive
5. 好友QQ号,4字节
6. 未知1字节,一般是0x01
7. 自定义头像时间戳,4字节
8. 从何处开始得到数据,4字节
Note: 初始时,置为0xFFFFFFFF表示从最开始请求
9. 得到多少数据,4字节
Note: 请求时,设为0x00000000表示请求所有数据
- 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._03OutPacket |
decryptBody, encryptBody, equals, getBodyBytes, getCryptographStart, getCurrentFragment, getFamily, getHeadLength, getLength, getSerialNumber, getTailLength, getTotalFragment, parseHeader, parseTail, postFill, putHead, putTail, setCurrentFragment, setSerialNumber, setTotalFragment, toString, validateHeader |
| Methods inherited from class net.sf.jqql.packets.OutPacket |
dump, fill, getKey, getNextSeq, getSendCount, getTimeout, needAck, needResend, parseBody, setKey, setSendCount, setTimeout |
GetCustomHeadDataPacket
public GetCustomHeadDataPacket(QQUser user)
GetCustomHeadDataPacket
public GetCustomHeadDataPacket(ByteBuffer buf,
int length,
QQUser user)
throws PacketParseException
- Throws:
PacketParseException
getPacketName
public String getPacketName()
- Overrides:
getPacketName in class OutPacket
- Returns:
- descriptive name of packet
包的描述性名称
putBody
protected void putBody(ByteBuffer buf)
- Description copied from class:
Packet
- initialize packet body
初始化包体
- Specified by:
putBody in class Packet
- Parameters:
buf - ByteBuffer
getQQ
public int getQQ()
- Returns:
- the qq
setQQ
public void setQQ(int qq)
- Parameters:
qq - the qq to set
getTimestamp
public int getTimestamp()
- Returns:
- the timestamp
setTimestamp
public void setTimestamp(int timestamp)
- Parameters:
timestamp - the timestamp to set
getLength
public int getLength()
setLength
public void setLength(int length)
getOffset
public int getOffset()
setOffset
public void setOffset(int offset)