| 
 | ||||||||||
| 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.OptionRouteError
public static class RouteDsrMsg.OptionRouteError
A Route Error option.
| Field Summary | 
|---|
| Fields inherited from class jist.swans.route.RouteDsrMsg.Option | 
|---|
| optBuf, optBufOffset | 
| Constructor Summary | |
|---|---|
| RouteDsrMsg.OptionRouteError(byte[] buf,
                             int offset) | |
| Method Summary | |
|---|---|
| static byte[] | create(byte type,
       int salvage,
       NetAddress src,
       NetAddress dest,
       byte[] tsi)Creates a new Route Error option. | 
|  NetAddress | getDestAddress()Returns the destination of this Route Error. | 
|  int | getErrorType()Returns the error code contained in this Route Error. | 
|  int | getSalvageCount()Returns the salvage count of this Route Error. | 
|  int | getSize()Returns the size in bytes of this option. | 
|  NetAddress | getSourceAddress()Returns the source of this Route Error. | 
|  byte | getType()Returns the DSR type code for this kind of option. | 
|  int | getTypeSpecificInfoBytes(byte[] buf,
                         int offset)Returns the type-specific information contained in this Route Error. | 
|  int | getTypeSpecificInfoSize()Returns the size in bytes of any type-specific information contained in this Route Error. | 
| 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.OptionRouteError(byte[] buf,
                                    int offset)
| Method Detail | 
|---|
public byte getType()
getType in class RouteDsrMsg.Optionpublic int getSize()
getSize in class RouteDsrMsg.Optionpublic int getErrorType()
public int getSalvageCount()
public NetAddress getSourceAddress()
public NetAddress getDestAddress()
public int getTypeSpecificInfoSize()
public int getTypeSpecificInfoBytes(byte[] buf,
                                    int offset)
buf - the byte array to copy the type-specific information intooffset - the offset into buf where copying should begin
buf.
public static byte[] create(byte type,
                            int salvage,
                            NetAddress src,
                            NetAddress dest,
                            byte[] tsi)
type - the code corresponding to the type of error being reportedsalvage - the salvage countsrc - the source address of the errordest - the destination address of the errortsi - any type-specific information for this error
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||