|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.clackrouter.protocol.commands.VNSProtocolCommand
public abstract class VNSProtocolCommand
Field Summary | |
---|---|
static int |
LENGTH_LEN
|
protected int |
m_type
|
static int |
TYPE_AUTHREPLY
|
static int |
TYPE_AUTHREQUEST
|
static int |
TYPE_AUTHSTATUS
|
static int |
TYPE_BANNER
|
static int |
TYPE_CLOSE
|
static int |
TYPE_HWINFO
|
static int |
TYPE_INVALID
|
static int |
TYPE_LEN
|
static int |
TYPE_OPEN
|
static int |
TYPE_OPENTEMPLATE
|
static int |
TYPE_PACKET
|
static int |
TYPE_RTABLE
|
Constructor Summary | |
---|---|
protected |
VNSProtocolCommand(java.nio.ByteBuffer commandBuffer)
Constructor for receiving the command. |
protected |
VNSProtocolCommand(int type)
Constructor for sending the command. |
Method Summary | |
---|---|
protected void |
constructByteBuffer()
Contruct the bytes that will be ready to be sent to the server by prepending the length and the type. |
protected void |
constructByteBuffer(java.nio.ByteBuffer commandBuffer)
Contruct the bytes that will be ready to be sent to the server by prepending length and type to the data passed in from the subclass. |
protected java.nio.ByteBuffer |
extractByteBuffer()
Extract the bytes that are relevant to the subclass. |
java.nio.ByteBuffer |
getByteBuffer()
Get all the bytes of this command. |
VNSData |
getData()
|
int |
getLength()
Return the length of the command, in bytes, which is the length of the bytes sent by the subclass plus "length length" plus "type length". |
int |
getType()
Return the type of the command. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int LENGTH_LEN
public static final int TYPE_LEN
public static final int TYPE_INVALID
public static final int TYPE_OPEN
public static final int TYPE_CLOSE
public static final int TYPE_PACKET
public static final int TYPE_BANNER
public static final int TYPE_HWINFO
public static final int TYPE_RTABLE
public static final int TYPE_OPENTEMPLATE
public static final int TYPE_AUTHREQUEST
public static final int TYPE_AUTHREPLY
public static final int TYPE_AUTHSTATUS
protected int m_type
Constructor Detail |
---|
protected VNSProtocolCommand(int type)
protected VNSProtocolCommand(java.nio.ByteBuffer commandBuffer)
Method Detail |
---|
protected final void constructByteBuffer(java.nio.ByteBuffer commandBuffer)
protected final void constructByteBuffer()
protected final java.nio.ByteBuffer extractByteBuffer()
public int getType()
TYPE_OPEN
,
TYPE_CLOSE
,
TYPE_PACKET
,
TYPE_BANNER
,
TYPE_HWINFO
public int getLength()
public java.nio.ByteBuffer getByteBuffer()
public VNSData getData()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |