BSD style: see
license.txt
Initial release: April 2004
Kris
- class ServerThread ¶#
-
Subclasses Thread to provide the basic server-thread loop. This
functionality could also be implemented as a delegate, however,
we also wish to subclass in order to add thread-local data (see
HttpThread).
- this(AbstractServer server, ServerSocket socket) ¶#
-
Construct a ServerThread for the given Server, upon the
specified socket
- void run() [private] ¶#
-
Execute this thread until the Server says to halt. Each
thread waits in the socket.accept() state, waiting for
a connection request to arrive. Upon selection, a thread
dispatches the request via the request service-handler
and, upon completion, enters the socket.accept() state
once more.