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

HttpThread Class Reference

Inheritance diagram for HttpThread:

ServerThread List of all members.

Public Member Functions

 this (AbstractServer server, ServerSocket socket)
void setBridge (IProviderBridge bridge)
IProviderBridge getBridge ()

Public Attributes

IProviderBridge bridge

Private Member Functions

ThreadReturn run ()

Private Attributes

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

Detailed Description

Extends the basic ServerThread to add thread-local data. All data maintained on a thread basis is stored via multiple IProviderBridge instances (one per thread).

Definition at line 56 of file HttpThread.d.


Member Function Documentation

this AbstractServer  server,
ServerSocket  socket
[inline]
 

Construct an HttpThread with the provided server and socket attributes.

Reimplemented from ServerThread.

Definition at line 67 of file HttpThread.d.

void setBridge IProviderBridge  bridge  )  [inline]
 

Attach an IProvider/IServer bridge. This is where additional per-thread data is stored.

Definition at line 79 of file HttpThread.d.

Referenced by HttpServer::service().

IProviderBridge getBridge  )  [inline]
 

Return the bridge associated with this thread.

Definition at line 90 of file HttpThread.d.

References bridge.

Referenced by HttpServer::service().

ThreadReturn run  )  [inline, inherited]
 

Definition at line 93 of file ServerThread.d.

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


Member Data Documentation

IProviderBridge bridge
 

Definition at line 58 of file HttpThread.d.

Referenced by getBridge().

ServerSocket socket [inherited]
 

Definition at line 61 of file ServerThread.d.

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

AbstractServer server [inherited]
 

Definition at line 62 of file ServerThread.d.

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

public class VersionAres typedef void ThreadReturn [inherited]
 

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 [inherited]
 

Definition at line 91 of file ServerThread.d.


The documentation for this class was generated from the following file:
Generated on Fri Nov 11 18:44:36 2005 for Mango by  doxygen 1.4.0