net.sf.jqql.packets.out.disk
Class SetShareListPacket
java.lang.Object
net.sf.jqql.packets.Packet
net.sf.jqql.packets.OutPacket
net.sf.jqql.packets.DiskOutPacket
net.sf.jqql.packets.out.disk.SetShareListPacket
public class SetShareListPacket
- extends DiskOutPacket
set share list
1. head
2. length of some encoded string, 4 byte
3. some encoded string
Note: How to get the encoded string? I don't known yet. However, it has no effect to teh function
4. owner, 4 byte
5. id of dir to share, 4 byte
6. dir attribute, 4 byte
7. friend count to operate, 4 byte
8. friend's QQ number, 4 byte
9. attribute, 4 byte
Note: part 9 is used to identify operation type. For example, if the share digit is set, it mean to add the friend,
otherwise remove the friend
10. If there are more friends, repeat part 8-9
设置共享列表
1. 头部
2. 某个加密串的长度,4字节
3. 某个加密串
Note: 加密串怎么得到,还不清楚。但是好像不影响功能
4. 属主,4字节
5. 要共享的目录id,4字节
6. 目录属性,4字节
7. 操作的好友数目,4字节
8. 好友QQ号,4字节
9. 属性,4字节
Note: 9部分用来标识操作的类型,比如如果共享位被置位,则表示添加这个好友,否则是删除这个好友
10. 如果有更多好友,重复8-9部分
- 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.DiskOutPacket |
decryptBody, encryptBody, equals, getBodyBytes, getCryptographStart, getFamily, getHeadLength, getLength, getLocalIp, getTailLength, hashCode, parseHeader, parseTail, postFill, putHead, putTail, setLocalIp, validateHeader |
Methods inherited from class net.sf.jqql.packets.OutPacket |
dump, fill, getKey, getNextSeq, getSendCount, getTimeout, needAck, needResend, parseBody, setKey, setSendCount, setTimeout |
SetShareListPacket
public SetShareListPacket(ByteBuffer buf,
int length,
QQUser user)
throws PacketParseException
- Throws:
PacketParseException
SetShareListPacket
public SetShareListPacket(QQUser user)
getPacketName
public String getPacketName()
- Overrides:
getPacketName
in class OutPacket
- 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
getAdd
public List<Integer> getAdd()
- Returns:
- the add
setAdd
public void setAdd(List<Integer> add)
- Parameters:
add
- the add to set
getDirId
public int getDirId()
- Returns:
- the dirId
setDirId
public void setDirId(int dirId)
- Parameters:
dirId
- the dirId to set
getOwner
public int getOwner()
- Returns:
- the owner
setOwner
public void setOwner(int owner)
- Parameters:
owner
- the owner to set
getRemove
public List<Integer> getRemove()
- Returns:
- the remove
setRemove
public void setRemove(List<Integer> remove)
- Parameters:
remove
- the remove to set
getProperty
public int getProperty()
- Returns:
- the property
setProperty
public void setProperty(int property)
- Parameters:
property
- the property to set