![]() |
Stop() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Public Function |
Declared in: TCPRelay.h |
virtual BOOL Stop();
Stop the relay
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)
![]() |
Site content copyright © 2003 Komodia LTD.. See the About page for additional notices. This page last updated: 24 Feb 2003. |