Class CSocketPool::
Clear()
Base ClassesData ItemsConstructorsDestructorsFunctionsCustom CodeGo to hierarchy chart    Prev page: CheckQueueNext page: Connect    Show member index
Private Function Declared in:
SocketPool.h

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

void Clear();

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

Clear all the data

'Function Body' icon -- Shortcut to top of page. Function Body

try
{
    //Lock the CS
    CCriticalAutoRelease aRelease(m_pCSection);

    //We are closing
    m_bClosing=TRUE;

    //Lock the map
    CCriticalAutoRelease aRelease2(m_pCSectionQueue);

    //Start to delete the sockets
    SocketMap::iterator aIterator;
    aIterator=m_aSocketMap.begin();

    //Iterate it
    while (aIterator!=m_aSocketMap.end())
    {
        //Delete the socket
        aIterator->second->DeleteSocketFromThread(1000);

        //Next socket
        ++aIterator;
    }

    //Wait for all to close
    Sleep(5000);

    //No longer closing
    m_bClosing=FALSE;
}
ERROR_HANDLER("Clear")

'See Also' icon -- Shortcut to top of page. See Also

Class Overview Class Overview  |  Public base class CErrorHandler  |  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 © 2003 Komodia LTD.. See the About page for additional notices. This page last updated: 24 Feb 2003.