|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Thread net.clackrouter.application.ClackApplication net.clackrouter.application.Ping
public class Ping
A simplified version of the "ping" command to send ICMP echo requests to a remote host.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary | |
---|---|
static int |
SLEEP_TIME_MSEC
|
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
Ping()
|
Method Summary | |
---|---|
void |
application_main(java.lang.String[] args)
Abstract "main method" to be implemented by sub-class |
java.lang.String |
getDescription()
Returns a very brief (single line) description of the application |
void |
receivedEchoReply(int id,
int seq)
|
void |
receivedEchoRequest(int id,
int seq)
|
Methods inherited from class net.clackrouter.application.ClackApplication |
---|
alert, configure, createTCPSocket, createUDPSocket, getAppName, getRouter, getTime, notifyAlarm, pause, print, run, setAlarm, setShell |
Methods inherited from class java.lang.Thread |
---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static int SLEEP_TIME_MSEC
Constructor Detail |
---|
public Ping()
Method Detail |
---|
public void application_main(java.lang.String[] args) throws java.lang.InterruptedException
ClackApplication
application_main
in class ClackApplication
args
- the application arguments
java.lang.InterruptedException
public void receivedEchoReply(int id, int seq)
receivedEchoReply
in interface ICMPListener
public void receivedEchoRequest(int id, int seq)
receivedEchoRequest
in interface ICMPListener
public java.lang.String getDescription()
ClackApplication
getDescription
in class ClackApplication
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |