org.apache.log4j.net
Class TelnetAppender.SocketHandler
protected
class
TelnetAppender.SocketHandler
extends Thread
The SocketHandler class is used to accept connections from
clients. It is threaded so that clients can connect/disconnect
asynchronously.
Method Summary |
void | finalize() make sure we close all network connections when this handler is destroyed. |
void | run()
Continually accepts client connections. |
void | send(String message) sends a message to each of the clients in telnet-friendly output. |
public SocketHandler(int port)
public void finalize()
make sure we close all network connections when this handler is destroyed.
public void run()
Continually accepts client connections. Client connections
are refused when MAX_CONNECTIONS is reached.
public void send(String message)
sends a message to each of the clients in telnet-friendly output.
Copyright 2000-2005 Apache Software Foundation.