jist.swans.net
Class NetMessage.IpOption

java.lang.Object
  extended by jist.swans.net.NetMessage.IpOption
All Implemented Interfaces:
JistAPI.Timeless, Message
Direct Known Subclasses:
NetMessage.IpOptionSourceRoute
Enclosing class:
NetMessage

public abstract static class NetMessage.IpOption
extends java.lang.Object
implements Message

A generic IP packet option.


Field Summary
 
Fields inherited from interface jist.swans.misc.Message
NULL
 
Constructor Summary
NetMessage.IpOption()
           
 
Method Summary
abstract  int getSize()
          Return option length (in bytes/octets).
abstract  byte getType()
          Return option type field.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface jist.swans.misc.Message
getBytes
 

Constructor Detail

NetMessage.IpOption

public NetMessage.IpOption()
Method Detail

getType

public abstract byte getType()
Return option type field.

Returns:
option type field

getSize

public abstract int getSize()
Return option length (in bytes/octets).

Specified by:
getSize in interface Message
Returns:
option length (in bytes/octets)