JML

net.sf.jqql.packets.in.disk
Class AuthenticateReplyPacket

java.lang.Object
  extended by net.sf.jqql.packets.Packet
      extended by net.sf.jqql.packets.InPacket
          extended by net.sf.jqql.packets.DiskInPacket
              extended by net.sf.jqql.packets.in.disk.AuthenticateReplyPacket

public class AuthenticateReplyPacket
extends DiskInPacket

 authentication reply packet
 1. head
 2. last modified time, 4 byte
 3. network disk capacity, 4byte
 Note: part3 may be 0, this means the network disk is not opened yet
 4. capcity used, 4 byte
 5. unknown 4 byte
 6. status code, 4 byte, value 1 means that password is required.

 认证回复包
 1. 头部
 2. 最后修改时间,4字节
 3. 网络硬盘容量,4字节
 Note: 3部分可能为0,这种情况说明还没开通网络硬盘
 4. 已经使用的容量,4字节
 5. 未知的4字节
 6. 状态码,4字节,为1表示需要密码
 

Author:
luma

Field Summary
 int capacity
           
 long modifiedTime
           
 int statusCode
           
 int used
           
 
Fields inherited from class net.sf.jqql.packets.DiskInPacket
replyCode, replyMessage
 
Fields inherited from class net.sf.jqql.packets.Packet
bodyBuf, bodyDecrypted, command, crypter, ds, duplicated, header, log, sequence, source, user
 
Constructor Summary
AuthenticateReplyPacket(ByteBuffer buf, int length, QQUser user)
           
 
Method Summary
 String getPacketName()
           
 boolean isNeedPassword()
           
protected  void parseBody(ByteBuffer buf)
          parse packet body, from begin position of buf 解析包体,从buf的开头位置解析起
 
Methods inherited from class net.sf.jqql.packets.DiskInPacket
decryptBody, encryptBody, equals, getBodyBytes, getCryptographStart, getFamily, getHeadLength, getLength, getTailLength, hashCode, parseHeader, parseTail, putBody, putHead, putTail
 
Methods inherited from class net.sf.jqql.packets.InPacket
validateHeader
 
Methods inherited from class net.sf.jqql.packets.Packet
dump, getCommand, getHeader, getSequence, getSource, hash, isDuplicated, setDuplicated, setHeader, setSequence
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

modifiedTime

public long modifiedTime

capacity

public int capacity

used

public int used

statusCode

public int statusCode
Constructor Detail

AuthenticateReplyPacket

public AuthenticateReplyPacket(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 Packet
Returns:
descriptive name of packet 包的描述性名称

isNeedPassword

public boolean isNeedPassword()
Returns:
true means password is required true表示需要密码

JML