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
如果解æžå‡ºé”™