![]() |
NewConnection() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
| Private Function |
Declared in: TCPRelay.h |
DeclarationCTCPRelay::ConnectionID NewConnection( CClientSocket* pIncomingConnection, CClientSocket* pOutgoingConnection);
DescriptionAdd a connection
Function Body
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)
See Also
This web site was generated
using Surveyor V4.50.811.1. Click
here
for more information. |
Site content copyright © 2003 Komodia LTD.. See the About page for additional notices. This page last updated: 24 Feb 2003. |