Class CTCPPortScannerMultithreaded::
SocketProc()
Base ClassesData ItemsConstructorsDestructorsFunctionsCustom CodeGo to hierarchy chart    Prev page: SetMultithreadedPoolNext page: Custom Code in Header Before Includes    Show member index
Private Function Declared in:
TCPPortScannerMultithreaded.h

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

static void SocketProc(
    LPVOID lpData);

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

Our socket proc

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

try
{
    //Get the class
    CTCPPortScannerMultithreaded* pClass;
    pClass=(CTCPPortScannerMultithreaded*)lpData;

    //Quit flag
    BOOL bQuit;
    bQuit=FALSE;

    //Create the socket
    while (!bQuit)
    {
        //Adjust the number of sockets
        pClass->AdjustNumberOfSockets(1);

        //Allocate it
        if (!(bQuit=pClass->NewSocket()))
            ReportStaticError(CTCPPortScannerMultithreaded_Class,"SocketProc","Error creating the socket!");
    }
}
ERROR_HANDLER_STATIC(CTCPPortScannerMultithreaded_Class,"SocketProc")

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

Class Overview Class Overview  |  Public base class CTCPPortScanner  |  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.