protected class TelnetAppender.SocketHandler extends Thread
Thread.State, Thread.UncaughtExceptionHandler
Modifier and Type | Field and Description |
---|---|
private Vector |
connections |
private int |
MAX_CONNECTIONS |
private ServerSocket |
serverSocket |
private Vector |
writers |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
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(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 Vector connections
private ServerSocket serverSocket
private int MAX_CONNECTIONS
public SocketHandler(int port) throws IOException
IOException
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses