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)