JML

net.sf.jqql.packets.out
Class ClusterSubClusterOpPacket

java.lang.Object
  extended by net.sf.jqql.packets.Packet
      extended by net.sf.jqql.packets.OutPacket
          extended by net.sf.jqql.packets.BasicOutPacket
              extended by net.sf.jqql.packets.out.ClusterCommandPacket
                  extended by net.sf.jqql.packets.out.ClusterSubClusterOpPacket

public class ClusterSubClusterOpPacket
extends ClusterCommandPacket

 discussion group operation request:
 1. head
 2. command type, 1 byte, 0x36
 3. subcommand,  1 byte
 4. base on 3:
    i. when 3 is 0x02(get discussion group), 4 is cluster internal ID,4 byte
    ii. when 3 is 0x01(get multi-person dialog), here is 0, 4 byte.
 5. tail

 讨论组操作请求:
 1. 头部
 2. 命令类型,1字节,0x36
 3. 子命令,1字节
 4. 根据3的不同,有:
         i. 3为0x02(得到讨论组)时,4为群内部ID,4字节
         ii. 3为0x01(得到多人对话)时,这里为0,4字节
 5. 尾部
 

Author:
luma

Field Summary
 
Fields inherited from class net.sf.jqql.packets.out.ClusterCommandPacket
BOLD, clusterId, ITALIC, NONE, subCommand, UNDERLINE
 
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
ClusterSubClusterOpPacket(ByteBuffer buf, int length, QQUser user)
           
ClusterSubClusterOpPacket(QQUser user)
           
 
Method Summary
 byte getOpByte()
           
 String getPacketName()
           
protected  void putBody(ByteBuffer buf)
          initialize packet body 初始化包体
 void setOpByte(byte opByte)
           
 
Methods inherited from class net.sf.jqql.packets.out.ClusterCommandPacket
getClusterId, getSubCommand, parseBody, setClusterId, setSubCommand
 
Methods inherited from class net.sf.jqql.packets.BasicOutPacket
decryptBody, encryptBody, getBodyBytes, getCryptographStart, 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, 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

ClusterSubClusterOpPacket

public ClusterSubClusterOpPacket(QQUser user)

ClusterSubClusterOpPacket

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

getPacketName

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

putBody

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

Overrides:
putBody in class ClusterCommandPacket
Parameters:
buf - ByteBuffer

getOpByte

public byte getOpByte()
Returns:
Returns the opByte.

setOpByte

public void setOpByte(byte opByte)
Parameters:
opByte - The opByte to set.

JML