net.sf.jqql.packets.in
Class AddFriendExReplyPacket
java.lang.Object
net.sf.jqql.packets.Packet
net.sf.jqql.packets.InPacket
net.sf.jqql.packets.BasicInPacket
net.sf.jqql.packets.in.AddFriendExReplyPacket
public class AddFriendExReplyPacket
- extends BasicInPacket
this is reply packet of add friend, its format is
1. header
2. QQ number of which you want to add friend, 4 byte
3. reply code ,1 byte
4. extra condition code, 1 byte, for example whether need authenitication, and so on
Note: only while part3 is 0x00, part 4 is being
5. tail
这个添加好友的应答包,格式是
1. 头部
2. 要添加的好友的QQ号,4字节
3. 回复码,1字节
4. 附加条件码,1字节,比如是不是需要认证,等等
注:仅当3部分为0x00时,4部分才存在
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.BasicInPacket |
decryptBody, encryptBody, getBodyBytes, getCryptographStart, getFamily, getHeadLength, getLength, getTailLength, parseHeader, parseTail, putBody, putHead, putTail, toString |
| Methods inherited from class net.sf.jqql.packets.Packet |
dump, equals, getCommand, getHeader, getSequence, getSource, hash, hashCode, isDuplicated, setDuplicated, setHeader, setSequence |
replyCode
public byte replyCode
authCode
public byte authCode
friendQQ
public int friendQQ
AddFriendExReplyPacket
public AddFriendExReplyPacket(ByteBuffer buf,
int length,
QQUser user)
throws PacketParseException
- constructed function
构造函数
- Parameters:
buf - 缓冲区 // bufferlength - 包长度 // packet length
- Throws:
PacketParseException - 解析错误 // parse error
getPacketName
public String getPacketName()
- Overrides:
getPacketName in class BasicInPacket
- 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
如果解析出错