net.sf.jqql.packets.in
Class ModifyInfoReplyPacket
java.lang.Object
net.sf.jqql.packets.Packet
net.sf.jqql.packets.InPacket
net.sf.jqql.packets.BasicInPacket
net.sf.jqql.packets.in.ModifyInfoReplyPacket
public class ModifyInfoReplyPacket
- extends BasicInPacket
reply packet of modify info, its format is
1. header
2. my QQ number's string form( if success it's my QQ number, or fail)
3. tail
修改信息的回复包,格式是
1. 头部
2. 我的QQ号的字符串形式(成功了就应该是我的QQ号,否则就是失败了)
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 |
success
public boolean success
qqNum
public int qqNum
ModifyInfoReplyPacket
public ModifyInfoReplyPacket(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
如果解析出错