Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

ServerThread Class Reference

Inheritance diagram for ServerThread:

CacheServer::LoaderThread HttpThread List of all members.

Public Member Functions

 this (AbstractServer server, ServerSocket socket)
ThreadReturn run ()

Public Attributes

ServerSocket socket
AbstractServer server
public class VersionAres typedef
void 
ThreadReturn
else typedef int ThreadReturn

Detailed Description

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).

Definition at line 59 of file ServerThread.d.


Member Function Documentation

this AbstractServer  server,
ServerSocket  socket
[inline]
 

Construct a ServerThread for the given Server, upon the specified socket

Reimplemented in HttpThread.

Definition at line 71 of file ServerThread.d.

References server, AbstractServer::socket, and socket.

ThreadReturn run  )  [inline]
 

Definition at line 93 of file ServerThread.d.

References ServerSocket::accept(), ILogger::error(), ILogger::fatal(), AbstractServer::getLogger(), server, AbstractServer::service(), socket, and x.


Member Data Documentation

ServerSocket socket
 

Definition at line 61 of file ServerThread.d.

Referenced by run(), and this().

AbstractServer server
 

Definition at line 62 of file ServerThread.d.

Referenced by run(), this(), and HttpBridge::this().

public class VersionAres typedef void ThreadReturn
 

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.

Definition at line 88 of file ServerThread.d.

else typedef int ThreadReturn
 

Definition at line 91 of file ServerThread.d.


The documentation for this class was generated from the following file:
Generated on Mon Nov 14 11:00:01 2005 for Mango by  doxygen 1.4.0