Main Page | Class Hierarchy | Class List | File List | Class Members

Server::MCP Class Reference

List of all members.

Public Member Functions

 MCP ()
void ResetConnection ()
void Start ()
void Stop ()
HTTPResponse ServiceHTTPRequest (HTTPRequestQueueObject request)
void UpdateChkList (ushort clientID, CacheIndex index)
void SendResponse (HTTPResponse response, HTTPRequestQueueObject reqQObj, bool isCacheUpdate)
void UpdateChkListEntries (ref CacheIndex index, byte[] chk, HTTPBody body)

Public Attributes

HTTPObjectQueue requestQueue
ClientStub clientStub
ServerCacheManager cacheManager
HTTPStub httpStub

Detailed Description

<summary> Summary description for MCP. </summary>

Definition at line 17 of file MCP.cs.


Constructor & Destructor Documentation

Server::MCP::MCP  )  [inline]
 

<summary> Creates a new Master Control program class and all associated classes under it. A veritible server in a box. To start the server, call Start(). </summary>

Definition at line 80 of file MCP.cs.


Member Function Documentation

void Server::MCP::ResetConnection  )  [inline]
 

<summary> Resets the server library and all constituant components on connecion reset / close </summary>

Definition at line 99 of file MCP.cs.

HTTPResponse Server::MCP::ServiceHTTPRequest HTTPRequestQueueObject  request  )  [inline]
 

<summary> Obtains the a fresh HTTP Response from the server cache, or from the origin server. </summary> <param name="req">The HTTP Request to fulfill</param> <returns>The HTTP Response fulfilling the request</returns>

Definition at line 144 of file MCP.cs.

References Common::CacheManager::CanService(), Server::HTTPStub::ServiceRequest(), Server::ServerCacheManager::ServiceRequest(), and Common::CacheManager::UpdateCache().

void Server::MCP::UpdateChkList ushort  clientID,
CacheIndex  index
[inline]
 

<summary> Updates the CHK list for a given client </summary> <param name="clientID">The ID of the client the CHK list is from</param> <param name="index">The CHK list to update it with</param>

Definition at line 255 of file MCP.cs.


Member Data Documentation

ServerCacheManager Server::MCP::cacheManager
 

<summary> The big, all encompasing CHK based server cache </summary>

Definition at line 37 of file MCP.cs.

ClientStub Server::MCP::clientStub
 

<summary> Interface to the client(s) </summary>

Definition at line 29 of file MCP.cs.

HTTPStub Server::MCP::httpStub
 

<summary> Interfaces with the outside world using HTTP </summary>

Definition at line 42 of file MCP.cs.

HTTPObjectQueue Server::MCP::requestQueue
 

<summary> A Queue containing all incoming HTTP requests that need to be processed </summary>

Definition at line 25 of file MCP.cs.


The documentation for this class was generated from the following file:
Generated on Mon May 8 22:07:29 2006 by  doxygen 1.3.9.1