driver
Class ip.MyIpHandler

java.lang.Object
  extended by driver.ip.MyIpHandler
All Implemented Interfaces:
NetInterface.NetHandler
Enclosing class:
ip

public static class ip.MyIpHandler
extends java.lang.Object
implements NetInterface.NetHandler


Constructor Summary
ip.MyIpHandler()
           
 
Method Summary
 void receive(Message msg, NetAddress src, MacAddress lastHop, byte macId, NetAddress dst, byte priority, byte ttl)
          Receive a message from network layer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ip.MyIpHandler

public ip.MyIpHandler()
Method Detail

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 received
src - source network address
lastHop - source link address
macId - incoming interface
dst - destination network address
priority - packet priority
ttl - packet time-to-live