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

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

BOOL CanScan();

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

Do we have something to scan

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

try
{
    //Lock the data
    CCriticalAutoRelease aRelease(m_pCSection,TRUE);

    //Do we have a pair
    if (!m_aCurrentPair.usFromPort ||
        !m_aCurrentPair.usToPort ||
        m_aCurrentPair.usFromPort>m_aCurrentPair.usToPort)
        //Get a pair
        if (m_aPortsToScan.begin()==m_aPortsToScan.end())
            return FALSE;
        else
        {
            //Get the pair and remove it
            m_aCurrentPair=m_aPortsToScan.front();
            m_aPortsToScan.pop_front();
        }

    return TRUE;
}
ERROR_HANDLER_RETURN("CanScan",FALSE)

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