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.
Constructor Summary
SocketHandler(int port)
Method Summary
voidfinalize()
make sure we close all network connections when this handler is destroyed.
voidrun()
Continually accepts client connections.
voidsend(String message)
sends a message to each of the clients in telnet-friendly output.

Constructor Detail

SocketHandler

public SocketHandler(int port)

Method Detail

finalize

public void finalize()
make sure we close all network connections when this handler is destroyed.

run

public void run()
Continually accepts client connections. Client connections are refused when MAX_CONNECTIONS is reached.

send

public void send(String message)
sends a message to each of the clients in telnet-friendly output.
Copyright 2000-2005 Apache Software Foundation.