net.clackrouter.protocol.commands
Class VNSPacketProtocolCommand

java.lang.Object
  extended by net.clackrouter.protocol.commands.VNSProtocolCommand
      extended by net.clackrouter.protocol.commands.VNSPacketProtocolCommand

public class VNSPacketProtocolCommand
extends VNSProtocolCommand


Field Summary
static int MAX_LEN
           
 
Fields inherited from class net.clackrouter.protocol.commands.VNSProtocolCommand
LENGTH_LEN, m_type, TYPE_AUTHREPLY, TYPE_AUTHREQUEST, TYPE_AUTHSTATUS, TYPE_BANNER, TYPE_CLOSE, TYPE_HWINFO, TYPE_INVALID, TYPE_LEN, TYPE_OPEN, TYPE_OPENTEMPLATE, TYPE_PACKET, TYPE_RTABLE
 
Constructor Summary
VNSPacketProtocolCommand(java.nio.ByteBuffer commandBuffer)
          Contructor for receiving packets.
VNSPacketProtocolCommand(VNSPacket packet)
          Constructor for sending packets.
 
Method Summary
 VNSData getData()
           
 
Methods inherited from class net.clackrouter.protocol.commands.VNSProtocolCommand
constructByteBuffer, constructByteBuffer, extractByteBuffer, getByteBuffer, getLength, getType, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MAX_LEN

public static final int MAX_LEN
See Also:
Constant Field Values
Constructor Detail

VNSPacketProtocolCommand

public VNSPacketProtocolCommand(VNSPacket packet)
                         throws java.lang.Exception
Constructor for sending packets.

Throws:
java.lang.Exception

VNSPacketProtocolCommand

public VNSPacketProtocolCommand(java.nio.ByteBuffer commandBuffer)
                         throws java.lang.Exception
Contructor for receiving packets.

Throws:
java.lang.Exception
Method Detail

getData

public VNSData getData()
Overrides:
getData in class VNSProtocolCommand