Artemus::Proxy::ClientConnectionManager Class Reference

The manager for client connections. More...

Collaboration diagram for Artemus::Proxy::ClientConnectionManager:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 ClientConnectionManager (XboxCodeAnalyzerProxyGame game, int port)
 Constructs a new ClientConnectionManager instance.
void Start (int poolSize)
 Starts the manager.
void Stop ()
 Stops the manager.

Properties

int ActiveConnections [get]
 Gets the number of active client connections.
XboxCodeAnalyzerProxyGame Game [get]
 Gets the XNA game instance for this manager.

Private Member Functions

void AcceptSocketCallback (IAsyncResult result)
 Async callback for accepting incoming connections.
void ThreadProc ()
 The processing thread entry point.

Private Attributes

List< ClientConnectionm_activeClients = null
List< ClientConnectionm_freeClients = null
XboxCodeAnalyzerProxyGame m_game = null
TcpListener m_listener = null
IAsyncResult m_listenerResult = null
IPAddress m_localAddress = null
int m_port
Thread m_thread = null
ManualResetEvent m_threadExitEvent = null


Detailed Description

The manager for client connections.


Constructor & Destructor Documentation

Artemus::Proxy::ClientConnectionManager::ClientConnectionManager ( XboxCodeAnalyzerProxyGame  game,
int  port 
) [inline]

Constructs a new ClientConnectionManager instance.

Parameters:
game The game associated with this manager.
port The listening port for the manager.


Member Function Documentation

void Artemus::Proxy::ClientConnectionManager::AcceptSocketCallback ( IAsyncResult  result  )  [inline, private]

Async callback for accepting incoming connections.

Parameters:
result The IASyncResult object for the callback.

Here is the call graph for this function:

void Artemus::Proxy::ClientConnectionManager::Start ( int  poolSize  )  [inline]

Starts the manager.

Parameters:
poolSize The number of initial ClientConnection instances to keep in the pool.

void Artemus::Proxy::ClientConnectionManager::Stop (  )  [inline]

Stops the manager.

void Artemus::Proxy::ClientConnectionManager::ThreadProc (  )  [inline, private]

The processing thread entry point.


Member Data Documentation


Property Documentation

int Artemus::Proxy::ClientConnectionManager::ActiveConnections [get]

Gets the number of active client connections.

XboxCodeAnalyzerProxyGame Artemus::Proxy::ClientConnectionManager::Game [get]

Gets the XNA game instance for this manager.


The documentation for this class was generated from the following file:

Generated on Sat Jul 19 14:22:33 2008 for Artemus Proxy by  doxygen 1.5.5