jist.swans.trans
Class TransTcp.TcpOptions

java.lang.Object
  extended by jist.swans.trans.TransInterface.TransMessage
      extended by jist.swans.trans.TransTcp.TcpOptions
All Implemented Interfaces:
JistAPI.Timeless, Message
Enclosing class:
TransTcp

public static class TransTcp.TcpOptions
extends TransInterface.TransMessage

Implementation for TCP Options. (currently not used)


Field Summary
 
Fields inherited from interface jist.swans.misc.Message
NULL
 
Constructor Summary
TransTcp.TcpOptions()
          Constructor.
 
Method Summary
 void getBytes(byte[] msg, int offset)
          Retrieve the option and store it in the given byte array.
 int getSize()
          Returns the size of the option in a message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransTcp.TcpOptions

public TransTcp.TcpOptions()
Constructor.

Method Detail

getSize

public int getSize()
Returns the size of the option in a message.

Returns:
size of option

getBytes

public void getBytes(byte[] msg,
                     int offset)
Retrieve the option and store it in the given byte array.

Parameters:
msg - byte array to copy the option to
offset - starting index in the destination array