Modifier and Type | Class and Description |
---|---|
(package private) class |
TelnetEcho.Echo
The worker thread.
|
Modifier and Type | Field and Description |
---|---|
(package private) java.net.ServerSocket |
ss
The server cocket which accepts connections
|
Constructor and Description |
---|
TelnetEcho() |
Modifier and Type | Method and Description |
---|---|
static void |
confirmRunning() |
static void |
cont() |
void |
debugDump(java.io.OutputStream out) |
static void |
main(java.lang.String[] argv)
The main method called when the service starts.
|
void |
onServiceStop()
Here the telnet server implements the Stopable interface
On exit close the server cocket on port 23
|
static void |
paramtest(java.lang.String[] arg) |
static void |
pause() |
static int |
premain() |
void |
run()
Open server socket and wait for incoming connections
|
int |
timeToWait()
Don't wait if onServiceStop does not return.
|
void |
write(java.io.OutputStream out,
java.lang.String s) |
void |
wrkDir(java.io.OutputStream out) |
activeCount, checkAccess, clone, 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
public void onServiceStop()
onServiceStop
in interface Stopable
public int timeToWait()
timeToWait
in interface Stopable
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public void debugDump(java.io.OutputStream out)
public void wrkDir(java.io.OutputStream out)
public void write(java.io.OutputStream out, java.lang.String s)
public static void paramtest(java.lang.String[] arg)
public static void pause()
public static int premain()
public static void cont()
public static void confirmRunning()
public static void main(java.lang.String[] argv) throws java.lang.Exception
java.lang.Exception