![]() |
NewConnection() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Private Function |
Declared in: TCPRelay.h |
CTCPRelay::ConnectionID NewConnection( CClientSocket* pIncomingConnection, CClientSocket* pOutgoingConnection);
Add a connection
try { //The structure SocketData aData; aData.pIncomingConnection=pIncomingConnection; aData.pOutgoingConnection=pOutgoingConnection; //Lock the data CCriticalAutoRelease aRelease(m_pCSection); //Get the ID ConnectionID aID; aID=++m_aRunningID; //Add to the map m_aClientMap.insert(ClientMap::value_type(aID,aData)); //Done return aID; } ERROR_HANDLER_RETURN("NewConnection",0)
![]() |
Site content copyright © 2003 Komodia LTD.. See the About page for additional notices. This page last updated: 24 Feb 2003. |