![]() |
Shutdown() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Public Function |
Declared in: AsyncSocket.h |
static void Shutdown();
Indicate a system shutdown
try { //Indicate we're shutting down m_bShuttingDown=TRUE; //Clear the map SocketMap::iterator aTheIterator; aTheIterator=m_SocketMap.begin(); //While not end of the map while (aTheIterator!=m_SocketMap.end()) { //Delete the socket delete aTheIterator->second; //Go to the next socket ++aTheIterator; } //Wait for clean up Sleep(1000); //Delete the thread manager if (m_pThreadManager) delete m_pThreadManager; //Remove the handlers RemoveHandlers(); } ERROR_HANDLER_STATIC(CAsyncSocket_Class,"Shutdown")
![]() |
Site content copyright © 2001 Barak Weichselbaum. See the About page for additional notices. This page last updated: 27 Jun 2001. |