|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjist.swans.route.RouteAodv.RouteReplyMessage
private static class RouteAodv.RouteReplyMessage
Represents a Route Reply (RREP) message.
| Field Summary | |
|---|---|
private NetAddress |
destIp
RREP message destination IP address field. |
private int |
destSeqNum
RREP message destination sequence number field. |
private int |
hopCount
RREP message hop count field. |
private static int |
MESSAGE_SIZE
RREP Message size in bytes. |
private NetAddress |
origIp
RREP message originator sequence number field. |
| Fields inherited from interface jist.swans.misc.Message |
|---|
NULL |
| Constructor Summary | |
|---|---|
RouteAodv.RouteReplyMessage(NetAddress destIp,
int destSeqNum,
NetAddress origIp,
int hopCount)
Constructs a new RREP message object. |
|
| Method Summary | |
|---|---|
void |
getBytes(byte[] msg,
int offset)
Store packet into byte array. |
NetAddress |
getDestIp()
Returns destination ip address. |
int |
getDestSeqNum()
Returns destination sequence number. |
int |
getHopCount()
Returns hop count. |
NetAddress |
getOrigIp()
Returns originator sequence number. |
int |
getSize()
Returns packet size. |
void |
incHopCount()
Increments hop count. |
| 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 destIp
private int destSeqNum
private NetAddress origIp
private int hopCount
| Constructor Detail |
|---|
public RouteAodv.RouteReplyMessage(NetAddress destIp,
int destSeqNum,
NetAddress origIp,
int hopCount)
destIp - RREP message destination node net addressdestSeqNum - RREP message destination node sequence numberorigIp - RREP message originator node net addresshopCount - RREP message hopcount| Method Detail |
|---|
public NetAddress getDestIp()
public int getDestSeqNum()
public NetAddress getOrigIp()
public int getHopCount()
public void incHopCount()
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 | ||||||||