|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjist.swans.net.NetMessage.IpOption
jist.swans.net.NetMessage.IpOptionSourceRoute
public static class NetMessage.IpOptionSourceRoute
An IP packet source route option.
| Field Summary | |
|---|---|
static byte |
TYPE
option type constant: source route. |
| Fields inherited from interface jist.swans.misc.Message |
|---|
NULL |
| Constructor Summary | |
|---|---|
NetMessage.IpOptionSourceRoute(NetAddress[] route)
Create new source route option. |
|
NetMessage.IpOptionSourceRoute(NetAddress[] route,
int ptr)
Create new source route option. |
|
| Method Summary | |
|---|---|
void |
getBytes(byte[] msg,
int offset)
Store packet into byte array. |
int |
getPtr()
Return source route pointer: index into route. |
NetAddress[] |
getRoute()
Return source route. |
int |
getSize()
Return option length (in bytes/octets). |
byte |
getType()
Return option type field. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final byte TYPE
| Constructor Detail |
|---|
public NetMessage.IpOptionSourceRoute(NetAddress[] route)
route - source route
public NetMessage.IpOptionSourceRoute(NetAddress[] route,
int ptr)
route - source routeptr - source route pointer| Method Detail |
|---|
public NetAddress[] getRoute()
public int getPtr()
public byte getType()
getType in class NetMessage.IpOptionpublic int getSize()
getSize in interface MessagegetSize in class NetMessage.IpOption
public void getBytes(byte[] msg,
int offset)
msg - destination byte arrayoffset - byte array starting offsetpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||