| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjist.swans.route.RouteDsrMsg
public class RouteDsrMsg
A message with a DSR Options header.
| Nested Class Summary | |
|---|---|
| static class | RouteDsrMsg.OptionThe base class for all DSR header options. | 
| static class | RouteDsrMsg.OptionAckAn Acknowledgement option. | 
| static class | RouteDsrMsg.OptionAckRequestAn Acknowledgement Request option. | 
| static class | RouteDsrMsg.OptionPad1A Pad1 option. | 
| static class | RouteDsrMsg.OptionPadNA PadN option. | 
| static class | RouteDsrMsg.OptionRouteErrorA Route Error option. | 
| static class | RouteDsrMsg.OptionRouteReplyA Route Reply option. | 
| static class | RouteDsrMsg.OptionRouteRequestA Route Request option. | 
| static class | RouteDsrMsg.OptionSourceRouteA Source Route option. | 
| Field Summary | |
|---|---|
| static byte | ERROR_FLOW_STATE_NOT_SUPPORTEDError code for "flow state not supported". | 
| static byte | ERROR_NODE_UNREACHABLEError code for "unreachable node". | 
| static byte | ERROR_OPTION_NOT_SUPPORTEDError code for "option not supported". | 
| static byte | OPT_ACKType of an Acknowledgement option. | 
| static byte | OPT_ACK_REQUESTType of an Acknowledgement Request option. | 
| static byte | OPT_PAD1Type of a Pad1 option. | 
| static byte | OPT_PADNType of a PadN option. | 
| static byte | OPT_ROUTE_ERRORType of a Route Error option. | 
| static byte | OPT_ROUTE_REPLYType of a Route Reply option. | 
| static byte | OPT_ROUTE_REQUESTType of a Route Request option. | 
| static byte | OPT_SOURCE_ROUTEType of a Source Route option. | 
| static int | UNRECOGNIZED_OPT_DROPCode for dropping unrecognized options. | 
| static int | UNRECOGNIZED_OPT_IGNORECode for ignoring unrecognized options. | 
| static int | UNRECOGNIZED_OPT_MARKCode for marking unrecognized options. | 
| static int | UNRECOGNIZED_OPT_REMOVECode for removing unrecognized options. | 
| Fields inherited from interface jist.swans.misc.Message | 
|---|
| NULL | 
| Constructor Summary | |
|---|---|
| RouteDsrMsg(Message content)Creates a new RouteDsrMsgwith the given payload. | |
| Method Summary | |
|---|---|
|  void | addOption(byte[] opt)Adds a new option to the DSR message. | 
|  java.lang.Object | clone() | 
|  void | getBytes(byte[] buf,
         int offset)Store packet into byte array. | 
|  Message | getContent()Returns the the content of the DSR message. | 
|  short | getNextHeaderType()Returns the network protocol number of the content of the DSR message. | 
|  java.util.List | getOptions()Returns the options contained in the DSR header. | 
|  int | getSize()Return packet size or Constants.ZERO_WIRE_SIZE. | 
|  boolean | hasOption(byte optType)Determines whether the DSR header contains an option of the given type. | 
|  void | setNextHeaderType(short nextHeaderType)Sets the protocol number of the content of the DSR message. | 
| Methods inherited from class java.lang.Object | 
|---|
| equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static final byte OPT_ROUTE_REQUEST
public static final byte OPT_ROUTE_REPLY
public static final byte OPT_ROUTE_ERROR
public static final byte OPT_ACK_REQUEST
public static final byte OPT_ACK
public static final byte OPT_SOURCE_ROUTE
public static final byte OPT_PAD1
public static final byte OPT_PADN
public static final byte ERROR_NODE_UNREACHABLE
public static final byte ERROR_FLOW_STATE_NOT_SUPPORTED
public static final byte ERROR_OPTION_NOT_SUPPORTED
public static final int UNRECOGNIZED_OPT_IGNORE
public static final int UNRECOGNIZED_OPT_REMOVE
public static final int UNRECOGNIZED_OPT_MARK
public static final int UNRECOGNIZED_OPT_DROP
| Constructor Detail | 
|---|
public RouteDsrMsg(Message content)
RouteDsrMsg with the given payload.
content - the payload of the DSR message.  This can be
   null.| Method Detail | 
|---|
public java.util.List getOptions()
List of options.public Message getContent()
null if none.public short getNextHeaderType()
public void setNextHeaderType(short nextHeaderType)
nextHeaderType - the protocol number of the content of the DSR
   message.
public void getBytes(byte[] buf,
                     int offset)
getBytes in interface Messagebuf - destination byte arrayoffset - byte array starting offsetpublic int getSize()
getSize in interface Messagepublic void addOption(byte[] opt)
opt - the option to addpublic boolean hasOption(byte optType)
optType - the type of option to search for
optType.public java.lang.Object clone()
clone in class java.lang.Object| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||