JML

net.sf.jqql.packets.in
Class AuthorizeReplyPacket

java.lang.Object
  extended by net.sf.jqql.packets.Packet
      extended by net.sf.jqql.packets.InPacket
          extended by net.sf.jqql.packets.BasicInPacket
              extended by net.sf.jqql.packets.in.AuthorizeReplyPacket

public class AuthorizeReplyPacket
extends BasicInPacket

 reply packet of authorize
 1. header
 2. subcommand, 1 byte
 3. QQ number which want to add, 4 byte
 4. reply code, 1 byte
 5. tail
 发送验证消息的回复包
 1. 头部
 2. 子命令,1字节
 3. 要添加的QQ号,4字节
 4. 回复码,1字节
 5. 尾部
 

Author:
luma

Field Summary
 byte replyCode
           
 byte subCommand
           
 int to
           
 
Fields inherited from class net.sf.jqql.packets.Packet
bodyBuf, bodyDecrypted, command, crypter, ds, duplicated, header, log, sequence, source, user
 
Constructor Summary
AuthorizeReplyPacket(ByteBuffer buf, int length, QQUser user)
           
 
Method Summary
 String getPacketName()
           
protected  void parseBody(ByteBuffer buf)
          parse packet body, from begin position of buf 解析包体,从buf的开头位置解析起
 
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.InPacket
validateHeader
 
Methods inherited from class net.sf.jqql.packets.Packet
dump, equals, getCommand, getHeader, getSequence, getSource, hash, hashCode, isDuplicated, setDuplicated, setHeader, setSequence
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

subCommand

public byte subCommand

to

public int to

replyCode

public byte replyCode
Constructor Detail

AuthorizeReplyPacket

public AuthorizeReplyPacket(ByteBuffer buf,
                            int length,
                            QQUser user)
                     throws PacketParseException
Throws:
PacketParseException
Method Detail

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 如果解析出错

getPacketName

public String getPacketName()
Overrides:
getPacketName in class BasicInPacket
Returns:
descriptive name of packet 包的描述性名称

JML