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.icmp.IcmpApplicationAdaptor

java.lang.Object
  |
  +--fi.hut.tcm.jacob.conduits.BaseConduit
        |
        +--fi.hut.tcm.jacob.conduits.Sedaptor
              |
              +--fi.hut.tcm.jacob.conduits.Adaptor
                    |
                    +--fi.hut.tcm.jacob.tcpip.icmp.IcmpApplicationAdaptor

public class IcmpApplicationAdaptor
extends fi.hut.tcm.jacob.conduits.Adaptor
IcmpApplicationAdaptor

Creates ICMP ECHO REQUEST messages and receives echo replies.


Fields inherited from class fi.hut.tcm.jacob.conduits.BaseConduit
id, SIDE_NUMBER, sides
 
Constructor Summary
IcmpApplicationAdaptor()
           
 
Method Summary
void adapt(fi.hut.tcm.jacob.conduits.Message message)
          Receives replies to echo requests.
IcmpApplicationAdaptor connect()
           
void disconnect(IcmpApplicationAdaptor worker)
           
boolean filter(fi.hut.tcm.jacob.conduits.Message message)
          Prints out the status if the message passed in is a notification message.
void send(int dstIp, int seq)
          Send an ICMP ECHO REQUEST message.
void setConnected(boolean is)
           
void setReplyListener(ReplyListener listener)
           
void waitConnection(boolean is)
           
 
Methods inherited from class fi.hut.tcm.jacob.conduits.Adaptor
accept, adapt, filter, getSideCount
 
Methods inherited from class fi.hut.tcm.jacob.conduits.Sedaptor
addTimeout, cancelTimeout, getMessageSource, newMessage, releaseMessage, returnMessage, sendMessage, stopMessage
 
Methods inherited from class fi.hut.tcm.jacob.conduits.BaseConduit
accept, clone, dump, getId, getSide, getSideCount, initialSideCount, initSides
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait
 

Constructor Detail

IcmpApplicationAdaptor

public IcmpApplicationAdaptor()
Method Detail

setReplyListener

public void setReplyListener(ReplyListener listener)

connect

public IcmpApplicationAdaptor connect()

disconnect

public void disconnect(IcmpApplicationAdaptor worker)

setConnected

public void setConnected(boolean is)

waitConnection

public void waitConnection(boolean is)

filter

protected boolean filter(fi.hut.tcm.jacob.conduits.Message message)
Prints out the status if the message passed in is a notification message.
Overrides:
filter in class fi.hut.tcm.jacob.conduits.Adaptor

adapt

public void adapt(fi.hut.tcm.jacob.conduits.Message message)
Receives replies to echo requests.
Parameters:
message - The Message carrying the echo reply
Overrides:
adapt in class fi.hut.tcm.jacob.conduits.Adaptor

send

public void send(int dstIp,
                 int seq)
Send an ICMP ECHO REQUEST message.
Parameters:
dstIP - destination IP
ident - packet identfier
seq - packet sequence number

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