|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjist.swans.route.RouteAodv.HelloMessage
private static class RouteAodv.HelloMessage
Represents a HELLO message.
| Field Summary | |
|---|---|
private NetAddress |
ip
Net address of node issuing HELLO message. |
private static int |
MESSAGE_SIZE
Size of HELLO Message in bytes. |
private int |
seqNum
Sequence number of node issuing HELLO message. |
| Fields inherited from interface jist.swans.misc.Message |
|---|
NULL |
| Constructor Summary | |
|---|---|
RouteAodv.HelloMessage(NetAddress ip,
int seqNum)
Constructs new HELLO Message object. |
|
| Method Summary | |
|---|---|
void |
getBytes(byte[] msg,
int offset)
Store packet into byte array. |
NetAddress |
getIp()
Returns HELLO message ip field. |
int |
getSize()
Return size of packet. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final int MESSAGE_SIZE
private NetAddress ip
private int seqNum
| Constructor Detail |
|---|
public RouteAodv.HelloMessage(NetAddress ip,
int seqNum)
ip - net address of this nodeseqNum - sequence number of this node| Method Detail |
|---|
public NetAddress getIp()
public int getSize()
getSize in interface Message
public void getBytes(byte[] msg,
int offset)
getBytes in interface Messagemsg - destination byte arrayoffset - byte array starting offset
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||