Class CTCPPortScanner::
ScanDone()
Base ClassesData ItemsConstructorsDestructorsFunctionsCustom CodeGo to hierarchy chart    Prev page: ScanNext page: SetConnectionTimeout    Show member index
Protected Function Declared in:
TCPPortScanner.h

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

void ScanDone(
    BOOL bError,
    BOOL bSpawnThread=TRUE);

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

We are done

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

try
{
    {
        //Lock
        CCriticalAutoRelease aRelease(m_pCSectionDone);

        //What shell we do?
        if (m_bDone ||
            m_bFinished)
            return;

        //Set we are finished
        m_bFinished=TRUE;
    }

    //Thread's data
    ThreadData* pData;
    pData=new ThreadData;

    //Populate it
    pData->bError=bError;
    pData->pScanner=this;

    //Do we have a thread
    if (bSpawnThread)
    {
        //Spawn a thread
        CGenericThread* pThread;
        pThread=COSManager::CreateThread(DoneThread);

        //Set to autodelete
        pThread->SetAutoDelete(TRUE);

        //Start it
        pThread->Start((LPVOID)pData);
    }
    else
        DoneThread((LPVOID)pData);
}
ERROR_HANDLER("ScanDone")

'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.