JML

net.sf.jqql.debug
Class _05DebugPacket

java.lang.Object
  extended by net.sf.jqql.packets.Packet
      extended by net.sf.jqql.packets.OutPacket
          extended by net.sf.jqql.packets._05OutPacket
              extended by net.sf.jqql.debug._05DebugPacket

public class _05DebugPacket
extends _05OutPacket

05 Protocol family debugging packet 05协议族调试包

Author:
luma

Field Summary
 
Fields inherited from class net.sf.jqql.packets.OutPacket
ack, key, resendCountDown, sendCount, seq, timeout
 
Fields inherited from class net.sf.jqql.packets.Packet
bodyBuf, bodyDecrypted, command, crypter, ds, duplicated, header, log, sequence, source, user
 
Constructor Summary
_05DebugPacket(char command, QQUser user)
           
 
Method Summary
 byte[] getBody()
           
protected  int getCryptographStart()
           
 String getPacketName()
           
protected  void putBody(ByteBuffer buf)
          initialize packet body 初始化包体
 void setBody(byte[] body)
           
 void setCryptographStart(int cryptographStart)
           
 
Methods inherited from class net.sf.jqql.packets._05OutPacket
decryptBody, encryptBody, getBodyBytes, getFamily, getHeadLength, getLength, getTailLength, parseHeader, parseTail, postFill, putHead, putTail, toString, validateHeader
 
Methods inherited from class net.sf.jqql.packets.OutPacket
dump, fill, getKey, getNextSeq, getSendCount, getTimeout, needAck, needResend, parseBody, setKey, setSendCount, setTimeout
 
Methods inherited from class net.sf.jqql.packets.Packet
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
 

Constructor Detail

_05DebugPacket

public _05DebugPacket(char command,
                      QQUser user)
Method Detail

getPacketName

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

putBody

protected void putBody(ByteBuffer buf)
Description copied from class: Packet
initialize packet body 初始化包体

Specified by:
putBody in class Packet
Parameters:
buf - ByteBuffer

getCryptographStart

protected int getCryptographStart()
Specified by:
getCryptographStart in class Packet
Returns:
start position of cryptograph, relative to the first byte of packet body. if this packet is unknown packet, return -1, this method only available to some protocol family. 密文的起始位置,这个位置是相对于包体的第一个字节来说的,如果这个包是未知包, 返回-1,这个方法只对某些协议族有意义

getBody

public byte[] getBody()
Returns:
the body

setBody

public void setBody(byte[] body)
Parameters:
body - the body to set

setCryptographStart

public void setCryptographStart(int cryptographStart)
Parameters:
cryptographStart - the cryptographStart to set

JML