net.sf.jqql.packets.out
Class GetFriendListPacket
java.lang.Object
net.sf.jqql.packets.Packet
net.sf.jqql.packets.OutPacket
net.sf.jqql.packets.BasicOutPacket
net.sf.jqql.packets.out.GetFriendListPacket
public class GetFriendListPacket
- extends BasicOutPacket
apply to get friend list packet, the content is:
1. head
2. two byte intial friend list returning position. Notice, the initial position is after sorted.
For example, you have 9 friends, number form 10 to 100, every 10 digit a number. So if the two digit are assightd to 3,
10, 20, 30 will not be returned.
3. firend list returned is sorted or not, 1 byte, none 0 is sorted.
4. 2 unknown byte
5. tail
请求得到好å‹åˆ—表的包,其内容为
1. 头部
2. 两个å—节的起始好å‹åˆ—表返回ä½ç½®ï¼Œæ³¨æ„这个起始ä½ç½®æ˜¯æŽ’åºä¹‹åŽçš„
åŠ å…¥ä½ æœ‰9个好å‹ï¼Œå·ç 从10到100æ¯éš”10ä½ä¸€ä¸ªï¼Œé‚£ä¹ˆå¦‚果这两个数
å—的值指定为3,那10, 20, 30å°±ä¸ä¼šè¿”回了
3. 返回的好å‹åˆ—è¡¨æ˜¯å¦æŽ’åºï¼Œ1个å—节,éž0则排åº
4. 2个未知å—节
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.BasicOutPacket |
decryptBody, encryptBody, getBodyBytes, getCryptographStart, getFamily, getHeadLength, getLength, getTailLength, parseHeader, parseTail, postFill, putHead, putTail, toString, validateHeader |
Methods inherited from class net.sf.jqql.packets.OutPacket |
dump, fill, getKey, getNextSeq, getSendCount, getTimeout, needAck, needResend, parseBody, setKey, setSendCount, setTimeout |
Methods inherited from class net.sf.jqql.packets.Packet |
equals, getCommand, getHeader, getSequence, getSource, hash, hashCode, isDuplicated, setDuplicated, setHeader, setSequence |
GetFriendListPacket
public GetFriendListPacket(QQUser user)
- construstor
æž„é€ å‡½æ•°
GetFriendListPacket
public GetFriendListPacket(ByteBuffer buf,
int length,
QQUser user)
throws PacketParseException
- Parameters:
buf
- length
-
- Throws:
PacketParseException
getPacketName
public String getPacketName()
- Overrides:
getPacketName
in class BasicOutPacket
- 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
setStartPosition
public void setStartPosition(char startPosition)
- Parameters:
startPosition
- The startPosition to set.
getStartPosition
public char getStartPosition()
- Returns:
- Returns the startPosition.