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 |
Definition at line 17 of file MCP.cs.
|
<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 |
|
<summary> Resets the server library and all constituant components on connecion reset / close </summary> |
|
<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(). |
|
<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> |
|
<summary> The big, all encompasing CHK based server cache </summary> |
|
<summary> Interface to the client(s) </summary> |
|
<summary> Interfaces with the outside world using HTTP </summary> |
|
<summary> A Queue containing all incoming HTTP requests that need to be processed </summary> |