| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjist.swans.route.RouteDsrMsg.Option
jist.swans.route.RouteDsrMsg.OptionRouteReply
public static class RouteDsrMsg.OptionRouteReply
A Route Reply option.
| Field Summary | 
|---|
| Fields inherited from class jist.swans.route.RouteDsrMsg.Option | 
|---|
| optBuf, optBufOffset | 
| Constructor Summary | |
|---|---|
| RouteDsrMsg.OptionRouteReply(byte[] buf,
                             int offset) | |
| Method Summary | |
|---|---|
| static byte[] | create(boolean lastHopExternal,
       NetAddress[] addrs)Creates a new Route Reply option. | 
| static byte[] | create(NetAddress[] addrs)Creates a new Route Reply option with the Last Hop External field set to false. | 
|  NetAddress | getAddress(int n)Returns the nth address listed in the route request option, counting from zero. | 
|  int | getNumAddresses()Returns the number of addresses listed in the Route Reply option. | 
|  int | getSize()Returns the size in bytes of this option. | 
|  byte | getType()Returns the DSR type code for this kind of option. | 
|  boolean | isLastHopExternal()Determines whether the last hop of the path is external. | 
| Methods inherited from class jist.swans.route.RouteDsrMsg.Option | 
|---|
| create, equals, getBytes, getType, hashCode | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public RouteDsrMsg.OptionRouteReply(byte[] buf,
                                    int offset)
| Method Detail | 
|---|
public byte getType()
getType in class RouteDsrMsg.Optionpublic int getSize()
getSize in class RouteDsrMsg.Optionpublic boolean isLastHopExternal()
public int getNumAddresses()
public NetAddress getAddress(int n)
n - the index into the route
n.
public static byte[] create(boolean lastHopExternal,
                            NetAddress[] addrs)
lastHopExternal - whether the last hop in the route is externaladdrs - the addresses of the nodes in the route
public static byte[] create(NetAddress[] addrs)
addrs - the addresses of the nodes in the route
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||