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.arp.ArpSelectorAccessor

java.lang.Object
  |
  +--fi.hut.tcm.jacob.tcpip.arp.ArpSelectorAccessor

public class ArpSelectorAccessor
extends java.lang.Object
implements fi.hut.tcm.jacob.conduits.Accessor
ArpSelectorAccessor Used by ARPSelectorMUX to multiplex packets coming from Ethernet.
- Routes ARP requests, ARP replies and IP packets from the network to the appropriate conduits according to the frame type field in the Ethernet header and IP header type in the case of Arp request or reply. Unrecognized packets are sent to the ARP selector terminator.
- Marks packets going to the network in the frame type field and forwards them to the Ethernet Adaptor.


Method Summary
java.lang.Object getKey(fi.hut.tcm.jacob.conduits.Message message)
          Returns key for multiplexing packets from Ethernet:
"1"
void setKey(fi.hut.tcm.jacob.conduits.Message message, java.lang.Object key)
          Sets the key for a message.
void unsetKey(fi.hut.tcm.jacob.conduits.Message message)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait
 

Method Detail

getKey

public java.lang.Object getKey(fi.hut.tcm.jacob.conduits.Message message)
Returns key for multiplexing packets from Ethernet:
"1" IP packet multiplexed to EtherAddMUX
"2" ARP REQUEST multiplexed to ARPReplyAdaptor
"3" ARP REPLY multiplexed to ArpRequestSession
Specified by:
getKey(fi.hut.tcm.jacob.conduits.Message) in interface fi.hut.tcm.jacob.conduits.Accessor
Parameters:
message -  
Returns:
Object returns the corresponding key

setKey

public void setKey(fi.hut.tcm.jacob.conduits.Message message,
                   java.lang.Object key)
Sets the key for a message.
Specified by:
setKey(fi.hut.tcm.jacob.conduits.Message, java.lang.Object) in interface fi.hut.tcm.jacob.conduits.Accessor
Parameters:
message -  
key -  

unsetKey

public void unsetKey(fi.hut.tcm.jacob.conduits.Message message)
Description copied from interface:
 
Specified by:
unsetKey(fi.hut.tcm.jacob.conduits.Message) in interface fi.hut.tcm.jacob.conduits.Accessor

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