Main Page | Class Hierarchy | Alphabetical List | Class List | 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

int run ()

Private Attributes

ServerSocket socket
AbstractServer server

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 53 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 64 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 76 of file HttpThread.d.

IProviderBridge getBridge  )  [inline]
 

Return the bridge associated with this thread.

Definition at line 87 of file HttpThread.d.

int run  )  [inline, 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 85 of file ServerThread.d.

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


Member Data Documentation

IProviderBridge bridge
 

Definition at line 55 of file HttpThread.d.

ServerSocket socket [inherited]
 

Definition at line 58 of file ServerThread.d.

AbstractServer server [inherited]
 

Definition at line 59 of file ServerThread.d.

Referenced by HttpBridge::this().


The documentation for this class was generated from the following file:
Generated on Sun Nov 7 19:07:04 2004 for Mango by doxygen 1.3.6