net.sf.jqql.packets.in.disk
Class AuthenticateReplyPacket
java.lang.Object
net.sf.jqql.packets.Packet
net.sf.jqql.packets.InPacket
net.sf.jqql.packets.DiskInPacket
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
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.DiskInPacket |
decryptBody, encryptBody, equals, getBodyBytes, getCryptographStart, getFamily, getHeadLength, getLength, getTailLength, hashCode, parseHeader, parseTail, putBody, putHead, putTail |
modifiedTime
public long modifiedTime
capacity
public int capacity
used
public int used
statusCode
public int statusCode
AuthenticateReplyPacket
public AuthenticateReplyPacket(ByteBuffer buf,
int length,
QQUser user)
throws PacketParseException
- Throws:
PacketParseException
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表示需要密码