Class CAsyncSocket::
Shutdown()
Base ClassesData ItemsConstructorsDestructorsFunctionsCustom CodeGo to hierarchy chart    Prev page: SetTimeoutNext page: SocketClosing    Show member index
Public Function Declared in:
AsyncSocket.h

'Declaration' icon -- Shortcut to top of page. Declaration

static void Shutdown();

'Description' icon -- Shortcut to top of page. Description

Indicate a system shutdown

'Function Body' icon -- Shortcut to top of page. 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' icon -- Shortcut to top of page. See Also

Class Overview Class Overview  |  Protected base class CSpoofBase  |  Hierarchy Chart Hierarchy Chart


Get Surveyor!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.