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

Client::ServerStub Class Reference

List of all members.

Public Member Functions

delegate void ServerStubCallback (object o)
 ServerStub (ClientControl clientControl)
void ResetConnection ()
void ServiceReq (HTTPRequest req, Connection client)
void Freshen (byte[] CHK, HTTPRequest request, HTTPResponseHandler responseHandler)
void SendCacheIndexMessage (CacheIndexMessage msg)
void Start ()
void Stop ()
void run ()
void ActionMessage (Message msg)

Public Attributes

MessageQueue toServerMsgQ
MessageQueue fromServerMsgQ
PendingRequestManager pendingRequestManager

Detailed Description

<summary> Deals with sending things to and getting things from the server proxy. Is the last stop before going into Custom Protocol </summary>

Definition at line 13 of file ServerStub.cs.


Member Function Documentation

void Client::ServerStub::Freshen byte[]  CHK,
HTTPRequest  request,
HTTPResponseHandler  responseHandler
[inline]
 

<summary> sends an request to the server to freshen a cache entry </summary>

Definition at line 64 of file ServerStub.cs.

References Client::ClientSettings::ServerID, Client::PendingRequestManager::ServiceRequest(), and Client::ClientControl::settings.

void Client::ServerStub::run  )  [inline]
 

<summary> Thread to spin round looking at fromServerMsgQ and dealing with appropriately </summary>

Definition at line 104 of file ServerStub.cs.

References Common::MessageQueue::DequeueBlocking().

void Client::ServerStub::ServiceReq HTTPRequest  req,
Connection  client
[inline]
 

<summary> sends an HTTP request to the server proxy over the custom protocol, and sends the response to client </summary>

Definition at line 46 of file ServerStub.cs.

References Common::MessageQueue::EnqueueBlocking(), Client::ClientSettings::ServerID, Client::PendingRequestManager::ServiceRequest(), and Client::ClientControl::settings.

void Client::ServerStub::Start  )  [inline]
 

<summary> Starts the incoming message queue processing thread </summary>

Definition at line 82 of file ServerStub.cs.

void Client::ServerStub::Stop  )  [inline]
 

<summary> Shutsdown the incoming message queue processing thread </summary>

Definition at line 93 of file ServerStub.cs.


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