class CCProtoPacket
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
CC_HASH_SIZE |
static int |
CC_MAX_LOGIN_SIZE |
static int |
CC_MAX_PICTURE_SIZE |
static int |
CC_MAX_TEXT_SIZE |
static int |
CC_PROTO_VER |
static int |
CC_RAND_SIZE |
static int |
cmdCC_BALANCE |
static int |
cmdCC_BYE |
static int |
cmdCC_FAILED |
static int |
cmdCC_HASH |
static int |
cmdCC_LOGIN |
static int |
cmdCC_OK |
static int |
cmdCC_OVERLOAD |
static int |
cmdCC_PICTURE |
static int |
cmdCC_PICTURE2 |
static int |
cmdCC_PICTUREFL |
static int |
cmdCC_RAND |
static int |
cmdCC_TEXT |
static int |
cmdCC_TEXT2 |
static int |
cmdCC_TIMEOUT |
static int |
cmdCC_UNUSED |
static int |
SIZEOF_CC_PACKET |
static int |
SIZEOF_CC_PICT_DESCR |
Constructor and Description |
---|
CCProtoPacket() |
Modifier and Type | Method and Description |
---|---|
(package private) int |
calcSize() |
(package private) int |
getCmd() |
(package private) byte[] |
getData() |
(package private) int |
getFullSize() |
(package private) int |
getSize() |
(package private) int |
getVer() |
boolean |
packTo(java.io.DataOutputStream oos) |
(package private) void |
setCmd(int cmd) |
(package private) void |
setData(byte[] data) |
(package private) void |
setSize(int size) |
(package private) void |
setVer(int ver) |
static int |
swapInt(int value) |
boolean |
unpackFrom(java.io.DataInputStream dis,
int cmd,
int size) |
public static final int CC_PROTO_VER
public static final int CC_RAND_SIZE
public static final int CC_MAX_TEXT_SIZE
public static final int CC_MAX_LOGIN_SIZE
public static final int CC_MAX_PICTURE_SIZE
public static final int CC_HASH_SIZE
public static final int cmdCC_UNUSED
public static final int cmdCC_LOGIN
public static final int cmdCC_BYE
public static final int cmdCC_RAND
public static final int cmdCC_HASH
public static final int cmdCC_PICTURE
public static final int cmdCC_TEXT
public static final int cmdCC_OK
public static final int cmdCC_FAILED
public static final int cmdCC_OVERLOAD
public static final int cmdCC_BALANCE
public static final int cmdCC_TIMEOUT
public static final int cmdCC_PICTURE2
public static final int cmdCC_PICTUREFL
public static final int cmdCC_TEXT2
public static final int SIZEOF_CC_PACKET
public static final int SIZEOF_CC_PICT_DESCR
public static int swapInt(int value)
public boolean packTo(@NotNull java.io.DataOutputStream oos)
public boolean unpackFrom(@NotNull java.io.DataInputStream dis, int cmd, int size)
void setVer(int ver)
int getVer()
void setCmd(int cmd)
int getCmd()
void setSize(int size)
int getSize()
int calcSize()
int getFullSize()
void setData(byte[] data)
@Nullable byte[] getData()