
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< ClientConnection > | m_activeClients = null |
| List< ClientConnection > | m_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 |
| Artemus::Proxy::ClientConnectionManager::ClientConnectionManager | ( | XboxCodeAnalyzerProxyGame | game, | |
| int | port | |||
| ) | [inline] |
Constructs a new ClientConnectionManager instance.
| game | The game associated with this manager. | |
| port | The listening port for the manager. |
| void Artemus::Proxy::ClientConnectionManager::AcceptSocketCallback | ( | IAsyncResult | result | ) | [inline, private] |
Async callback for accepting incoming connections.
| result | The IASyncResult object for the callback. |

| void Artemus::Proxy::ClientConnectionManager::Start | ( | int | poolSize | ) | [inline] |
Starts the manager.
| 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.
List<ClientConnection> Artemus::Proxy::ClientConnectionManager::m_activeClients = null [private] |
List<ClientConnection> Artemus::Proxy::ClientConnectionManager::m_freeClients = null [private] |
XboxCodeAnalyzerProxyGame Artemus::Proxy::ClientConnectionManager::m_game = null [private] |
TcpListener Artemus::Proxy::ClientConnectionManager::m_listener = null [private] |
IAsyncResult Artemus::Proxy::ClientConnectionManager::m_listenerResult = null [private] |
IPAddress Artemus::Proxy::ClientConnectionManager::m_localAddress = null [private] |
int Artemus::Proxy::ClientConnectionManager::m_port [private] |
Thread Artemus::Proxy::ClientConnectionManager::m_thread = null [private] |
ManualResetEvent Artemus::Proxy::ClientConnectionManager::m_threadExitEvent = null [private] |
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.
1.5.5