driver
Class ip.MyIpHandler
java.lang.Object
driver.ip.MyIpHandler
- All Implemented Interfaces:
- NetInterface.NetHandler
- Enclosing class:
- ip
public static class ip.MyIpHandler
- extends java.lang.Object
- implements NetInterface.NetHandler
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ip.MyIpHandler
public ip.MyIpHandler()
receive
public void receive(Message msg,
NetAddress src,
MacAddress lastHop,
byte macId,
NetAddress dst,
byte priority,
byte ttl)
- Description copied from interface:
NetInterface.NetHandler
- Receive a message from network layer.
- Specified by:
receive
in interface NetInterface.NetHandler
- Parameters:
msg
- message receivedsrc
- source network addresslastHop
- source link addressmacId
- incoming interfacedst
- destination network addresspriority
- packet priorityttl
- packet time-to-live
send
public void send(NetMessage msg)
- Description copied from interface:
NetInterface.NetHandler
- Send a message through the routing protocol
- Specified by:
send
in interface NetInterface.NetHandler
dropNotify
public void dropNotify(Message msg,
MacAddress nextHopMac,
Reason reason)
- Description copied from interface:
NetInterface.NetHandler
- Notification mechanism for packet dropped due to various "Reasons"
- Specified by:
dropNotify
in interface NetInterface.NetHandler