@Concealed
public class Packet
extends java.lang.Object
| Modifier and Type | Field and Description | 
|---|---|
short | 
cmd  | 
short | 
cmdSet  | 
short | 
errorCode  | 
short | 
flags  | 
int | 
id  | 
static short | 
Reply  | 
| Modifier and Type | Method and Description | 
|---|---|
static Packet | 
commandPacket(short cmdSet,
             short cmd)  | 
static void | 
dumpPacket(java.lang.String header,
          byte[] packetBytes)  | 
static Packet | 
fromByteArray(byte[] b)
Create a packet from its byte array representation 
 | 
static Packet | 
replyPacket(int id,
           short errorCode)  | 
byte[] | 
toByteArray()
Return byte representation of the packet 
 | 
public static final short Reply
public final int id
public final short flags
public final short cmdSet
public final short cmd
public short errorCode
public byte[] toByteArray()
public static Packet fromByteArray(byte[] b)
public static Packet commandPacket(short cmdSet, short cmd)
public static Packet replyPacket(int id, short errorCode)
public static void dumpPacket(java.lang.String header,
                              byte[] packetBytes)