| 
 | ||||||||||
| 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.OptionRouteRequest
public static class RouteDsrMsg.OptionRouteRequest
A Route Request option.
| Field Summary | 
|---|
| Fields inherited from class jist.swans.route.RouteDsrMsg.Option | 
|---|
| optBuf, optBufOffset | 
| Constructor Summary | |
|---|---|
| RouteDsrMsg.OptionRouteRequest(byte[] buf,
                               int offset) | |
| Method Summary | |
|---|---|
| static byte[] | create(short id,
       NetAddress target,
       NetAddress[] addrs)Creates a new Route Request option. | 
|  NetAddress | getAddress(int n)Returns the nth address listed in the route request option, counting from zero. | 
|  short | getId()Returns the identification number of this route request. | 
|  int | getNumAddresses()Returns the number of addresses listed in the route request option (not includingd the target address). | 
|  int | getSize()Returns the size in bytes of this option. | 
|  NetAddress | getTargetAddress()Returns the target address of this route request. | 
|  byte | getType()Returns the DSR type code for this kind of option. | 
| 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.OptionRouteRequest(byte[] buf,
                                      int offset)
| Method Detail | 
|---|
public byte getType()
getType in class RouteDsrMsg.Optionpublic int getSize()
getSize in class RouteDsrMsg.Optionpublic short getId()
public NetAddress getTargetAddress()
public int getNumAddresses()
public NetAddress getAddress(int n)
n - the index into the Route Request
n.
public static byte[] create(short id,
                            NetAddress target,
                            NetAddress[] addrs)
id - the identification number of the route requesttarget - the address of the node being searched foraddrs - the addresses of the nodes that have forwarded this request
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||