|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsimnet.Transport
simnet.ICMP
An implementation of the ICMP protocol.
| Field Summary |
| Fields inherited from class simnet.Transport |
node, NODE_ID, sim |
| Constructor Summary | |
ICMP()
|
|
| Method Summary | |
int |
getProtocol()
Returns the protocol (id) of this Transport |
void |
in(int src,
Packet packet)
Processes incoming packets from the IP stack. |
void |
initialize(Node parent_node)
Initializes a new ICMP object by setting its ID. |
boolean |
prePlugout(java.lang.Object replacement)
No special cleanup is required. |
| Methods inherited from class simnet.Transport |
finalize, plugoutNotification, rawIn |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ICMP()
| Method Detail |
public void initialize(Node parent_node)
initialize in class Transportparent_node - the Node that owns this Transportpublic int getProtocol()
getProtocol in class Transport
public void in(int src,
Packet packet)
in in class Transportsrc - the incoming packet' s sourcepacket - incoming packetpublic boolean prePlugout(java.lang.Object replacement)
prePlugout in interface Pluggable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||