protected class TelnetAppender.SocketHandler
extends java.lang.Thread
Modifier and Type | Field and Description |
---|---|
private java.util.Vector |
connections |
private int |
MAX_CONNECTIONS |
private java.net.ServerSocket |
serverSocket |
private java.util.Vector |
writers |
Constructor and Description |
---|
SocketHandler(int port) |
Modifier and Type | Method and Description |
---|---|
void |
close()
make sure we close all network connections when this handler is destroyed.
|
void |
finalize() |
void |
run()
Continually accepts client connections.
|
void |
send(java.lang.String message)
sends a message to each of the clients in telnet-friendly output.
|
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
private java.util.Vector writers
private java.util.Vector connections
private java.net.ServerSocket serverSocket
private int MAX_CONNECTIONS
public SocketHandler(int port) throws java.io.IOException
java.io.IOException
public void finalize()
finalize
in class java.lang.Object
public void close()
public void send(java.lang.String message)
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread