![]() |
Stop() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
| Public Function |
Declared in: TCPRelay.h |
Declarationvirtual BOOL Stop();
DescriptionStop the relay
Function Body
try
{
//Are we created?
if (!m_bCreated)
return TRUE;
//Delete the listener
m_pSocket->DeleteSocketFromThread();
m_pSocket=NULL;
{
//Lock
CCriticalAutoRelease aRelease(m_pCSection);
//Iterate the data
ClientMap::iterator aIterator;
aIterator=m_aClientMap.begin();
while (aIterator!=m_aClientMap.end())
{
//Signal the socket
aIterator->second.pIncomingConnection->Stop();
//Erase
aIterator=m_aClientMap.erase(aIterator);
}
}
//We are not created
m_bCreated=FALSE;
//Done
return TRUE;
}
ERROR_HANDLER_RETURN("Stop",FALSE)
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. |