![]() |
Shutdown() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
| Public Function |
Declared in: AsyncSocket.h |
Declarationstatic void Shutdown();
DescriptionIndicate a system shutdown
Function Body
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")
See Also
This web site was generated
using Surveyor V4.50.811.1. Click
here
for more information. |
Site content copyright © 2001 Barak Weichselbaum. See the About page for additional notices. This page last updated: 27 Jun 2001. |