|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--SSF.OS.ProtocolSession
|
+--SSF.OS.ICMP
This class implements a subset of the ICMP protocol.
listen()
SSF.OS.ICMPHeader for ICMP message factory methods
ping()
close()
| Field Summary | |
static int |
ICMP_CODE_HOST_UNREACHABLE
|
static int |
ICMP_CODE_PORT_UNREACHABLE
|
static int |
ICMP_CODE_PROTOCOL_UNREACHABLE
|
static int |
ICMP_DESTINATION_UNREACHABLE
|
static int |
ICMP_ECHO_REQUEST
|
static int |
ICMP_ECHO_RESPONSE
|
static int |
ICMP_PARAMETER_FAULT
|
static int |
ICMP_REDIRECT
|
static int |
ICMP_SOURCE_QUENCH
|
static int |
ICMP_TIME_EXCEEDED
|
static int |
ICMP_TIMESTAMP_REQUEST
|
static int |
ICMP_TIMESTAMP_RESPONSE
|
| Fields inherited from class SSF.OS.ProtocolSession |
name, use |
| Constructor Summary | |
ICMP()
|
|
| Method Summary | |
void |
config(com.renesys.raceway.DML.Configuration cfg)
Configure this ProtocolSession. |
void |
finished(ProtocolSession listener)
|
void |
init()
Initialization routine, called by the ProtocolGraph after instantiation. |
void |
listen(ProtocolSession listener)
|
int |
ping(int len,
int destaddr)
Send a single ping of 'len' bytes to the given destination IP IP address. |
int |
ping(int len,
int destaddr,
int ct,
double intervalSeconds)
|
int |
ping(int len,
int destaddr,
int ct,
double intervalSeconds,
int ttl)
Send 'ct' pings of 'len' bytes to the given destination IP IP address, one ping every 'intervalSeconds' seconds. |
boolean |
push(ProtocolMessage message,
ProtocolSession fromSession)
Routine to call when a message is being sent to ("pushed into") this ProtocolSession by another ProtocolSession. |
static boolean |
suppressReporting(IpHeader badpkt)
Returns true if no ICMP message should be generated when an ICMP packet is dropped. |
| Methods inherited from class SSF.OS.ProtocolSession |
close, closed, debugIdentifier, inGraph, open, opened, pushAfterDelay, pushAfterDelayFailed, setGraph, version |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int ICMP_ECHO_RESPONSE
public static final int ICMP_DESTINATION_UNREACHABLE
public static final int ICMP_SOURCE_QUENCH
public static final int ICMP_REDIRECT
public static final int ICMP_ECHO_REQUEST
public static final int ICMP_TIME_EXCEEDED
public static final int ICMP_PARAMETER_FAULT
public static final int ICMP_TIMESTAMP_REQUEST
public static final int ICMP_TIMESTAMP_RESPONSE
public static final int ICMP_CODE_HOST_UNREACHABLE
public static final int ICMP_CODE_PROTOCOL_UNREACHABLE
public static final int ICMP_CODE_PORT_UNREACHABLE
| Constructor Detail |
public ICMP()
| Method Detail |
public static boolean suppressReporting(IpHeader badpkt)
public void listen(ProtocolSession listener)
public void finished(ProtocolSession listener)
public int ping(int len,
int destaddr)
throws ProtocolException
ProtocolException
public int ping(int len,
int destaddr,
int ct,
double intervalSeconds,
int ttl)
throws ProtocolException
ProtocolException
public int ping(int len,
int destaddr,
int ct,
double intervalSeconds)
throws ProtocolException
ProtocolException
public boolean push(ProtocolMessage message,
ProtocolSession fromSession)
throws ProtocolException
ProtocolSessionIf you desire "safe" interaction with other CPU activities, even though your push() consumes no measurable/modelable CPU cycles, define the "cpudelay true" attribute for the ProtocolGraph and use pushAfterDelay(message,fromSession,0.0). This will guarantee proper ordering; that is, the framework will wait until the CPU is free before proceeding with the requested push().
push in class ProtocolSessionProtocolException
public void config(com.renesys.raceway.DML.Configuration cfg)
throws com.renesys.raceway.DML.configException
ProtocolSession
config in interface com.renesys.raceway.DML.Configurableconfig in class ProtocolSessioncom.renesys.raceway.DML.configException
public void init()
throws ProtocolException
ProtocolSession
init in class ProtocolSessionProtocolException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||