net.sf.jqql.packets.out
Class ClusterModifyInfoPacket
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.ClusterModifyInfoPacket
public class ClusterModifyInfoPacket
- extends ClusterCommandPacket
modify cluster info request packet, format:
1. head
2. command type, 1 byte, modify cluster info is 0x03
3. cluster internal ID, 4 byte
4. cluster type, 1 byte
5. cluster authentication type, 1 byte
6. 2004 cluster category, 4 byte
7. 2005 cluster category, 4 byte.
8. cluster name length, 1 byte
9 . cluster name.
10. unknown 2 byte, all 0
11. cluster declaration length, 1 byte
12. cluster declaration
13. cluster introduction length, 1 byte
14. cluster introduction
16. tail
修改群信æ¯çš„è¯·æ±‚åŒ…ï¼Œæ ¼å¼ä¸ºï¼š
1. 头部
2. 命令类型,1å—èŠ‚ï¼Œä¿®æ”¹ç¾¤ä¿¡æ¯æ˜¯0x03
3. 群的内部ID,4å—节
4. 群类型,1å—节
5. 群的认è¯ç±»åž‹ï¼Œ1å—节
6. 2004群分类,4å—节
7. 2005群分类,4å—节
8. 群å称长度,1å—节
9. 群åç§°
10. 未知的两å—节,全0
11. 群声明长度,1å—节
12. 群声明
13. 群简介长度,1å—节
14. 群简介
16. 尾部
- 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 |
ClusterModifyInfoPacket
public ClusterModifyInfoPacket(QQUser user)
- constructor
æž„é€ å‡½æ•°
ClusterModifyInfoPacket
public ClusterModifyInfoPacket(ByteBuffer buf,
int length,
QQUser user)
throws PacketParseException
- Parameters:
buf
- length
-
- Throws:
PacketParseException
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
getAuthType
public byte getAuthType()
- Returns:
- Returns the authType.
setAuthType
public void setAuthType(byte authType)
- Parameters:
authType
- The authType to set.
getDescription
public String getDescription()
- Returns:
- Returns the description.
setDescription
public void setDescription(String description)
- Parameters:
description
- The description to set.
getName
public String getName()
- Returns:
- Returns the name.
setName
public void setName(String name)
- Parameters:
name
- The name to set.
getNotice
public String getNotice()
- Returns:
- Returns the notice.
setNotice
public void setNotice(String notice)
- Parameters:
notice
- The notice to set.
getType
public byte getType()
- Returns:
- Returns the type.
setType
public void setType(byte type)
- Parameters:
type
- The type to set.
getCategory
public int getCategory()
- Returns:
- Returns the category.
setCategory
public void setCategory(int category)
- Parameters:
category
- The category to set.
getOldCategory
public int getOldCategory()
- Returns:
- Returns the oldCategory.
setOldCategory
public void setOldCategory(int oldCategory)
- Parameters:
oldCategory
- The oldCategory to set.