Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD

Class fi.hut.tcm.jacob.tcpip.ip.IpRoutingState

java.lang.Object
  |
  +--fi.hut.tcm.jacob.tcpip.ip.IpRoutingState
Subclasses:
IpRoutingOffState, IpRoutingOnState

public abstract class IpRoutingState
extends java.lang.Object
implements fi.hut.tcm.jacob.conduits.State
IpRoutingState This is the superclass of RoutingOnState and RoutingOffState, providing their common applyToNet() implementation and applyFromNet() interface.


Constructor Summary
IpRoutingState()
           
 
Method Summary
void applyFromNet(fi.hut.tcm.jacob.conduits.Message message, fi.hut.tcm.jacob.conduits.Session session, fi.hut.tcm.jacob.conduits.Messenger messenger)
           
void applyToNet(fi.hut.tcm.jacob.conduits.Message message, fi.hut.tcm.jacob.conduits.Session session, fi.hut.tcm.jacob.conduits.Messenger messenger)
          Calls the Messenger's destinationLocal() method which tells if the destination IP address belongs to this machine.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait
 

Constructor Detail

IpRoutingState

public IpRoutingState()
Method Detail

applyFromNet

public abstract void applyFromNet(fi.hut.tcm.jacob.conduits.Message message,
                                  fi.hut.tcm.jacob.conduits.Session session,
                                  fi.hut.tcm.jacob.conduits.Messenger messenger)

applyToNet

public void applyToNet(fi.hut.tcm.jacob.conduits.Message message,
                       fi.hut.tcm.jacob.conduits.Session session,
                       fi.hut.tcm.jacob.conduits.Messenger messenger)
Calls the Messenger's destinationLocal() method which tells if the destination IP address belongs to this machine. If the destination is local, then the message is sent back to the ReassemblySession. Otherwise, the messenger's setNextHopIp() method is called, and the packet is sent on its way to the IpRoutingMux.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD