net.sf.jqql.packets.in
Class AddFriendAuthResponseReplyPacket
java.lang.Object
net.sf.jqql.packets.Packet
net.sf.jqql.packets.InPacket
net.sf.jqql.packets.BasicInPacket
net.sf.jqql.packets.in.AddFriendAuthResponseReplyPacket
public class AddFriendAuthResponseReplyPacket
- extends BasicInPacket
this packet is sending ACK packet of friend authectication info, format is
1. header
2. reply code, 1 byte
3. tail
this packet doesn't means theat the other side have allowed you add him friend.
It juse means your request info already arrived
这个包是发送好友认证信息的确认包,格式为
1. 头部
2. 应答码,1字节
3. 尾部
这个包并不是说对方已经同意了你加他为好友,只不过是说明你的请求信息已经到达而已
- 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
AddFriendAuthResponseReplyPacket
public AddFriendAuthResponseReplyPacket(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
如果解析出错