net.sf.jqql.packets.out
Class ClusterCommitOrganizationPacket
java.lang.Object
net.sf.jqql.packets.Packet
net.sf.jqql.packets.OutPacket
net.sf.jqql.packets.BasicOutPacket
net.sf.jqql.packets.out.ClusterCommandPacket
net.sf.jqql.packets.out.ClusterCommitOrganizationPacket
public class ClusterCommitOrganizationPacket
- extends ClusterCommandPacket
commit organization architecture to server
1. head
2. command, 1 byte, 0x11
3. cluster internal id, 4 byte
4. organization count, 2 byte
5. organization sequence, 1 byte, begins from 1
6. byte length of organization name . about layer relationship format, refer to ClusterCommandReplyPacket note.
7. byte length of organization name, 1 byte
8. organization name
9. If there are more organizations, repeat part 5-8.
10. tail
提交组织架构到服务器
1. 头部
2. 命令,1字节,0x11
3. 群内部id,4字节
4. 组织个数,2字节
5. 组织序号,1字节,从1开始
6. 组织的层次关系,4字节。层次关系的格式参见ClusterCommandReplyPacket注释
7. 组织名称字节长度,1字节
8. 组织名称
9. 如果有更多组织,重复5-8部分
10. 尾部
- 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.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 |
ClusterCommitOrganizationPacket
public ClusterCommitOrganizationPacket(ByteBuffer buf,
int length,
QQUser user)
throws PacketParseException
- Throws:
PacketParseException
ClusterCommitOrganizationPacket
public ClusterCommitOrganizationPacket(QQUser user)
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
getOrganizations
public List<QQOrganization> getOrganizations()
- Returns:
- Returns the organizations.
setOrganizations
public void setOrganizations(List<QQOrganization> organizations)
- Parameters:
organizations
- The organizations to set.