public class RASConnectionHandler
extends java.lang.Object
implements java.lang.Runnable
RASConnectionHandler
processes individual client connections.
This thread loops continuously, writing to the console and/or file
until the client socket disconnects.Constructor and Description |
---|
RASConnectionHandler(java.net.Socket socket,
boolean toFile,
java.io.PrintWriter pWriter)
Deprecated.
Creates a
RASConnectionHandler . |
Modifier and Type | Method and Description |
---|---|
void |
run()
Deprecated.
Starts the
RASConnectionHandler on its own thread. |
public RASConnectionHandler(java.net.Socket socket, boolean toFile, java.io.PrintWriter pWriter)
RASConnectionHandler
.socket
- The socket on which to listen.toFile
- true
to write the data to a file;
false
, otherwise.pWriter
- The PrintWriter
to use.