Class CWhoisSocket::
OnSocketConnect()
Base ClassesData ItemsConstructorsDestructorsFunctionsCustom CodeGo to hierarchy chart    Prev page: OnSocketCloseNext page: OnSocketReceive    Show member index
Protected Function Declared in:
WhoisSocket.h

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

virtual BOOL OnSocketConnect(
    int iErrorCode);

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

try
{
    //Do we have an error
    if (iErrorCode)
    {
        //Report it
        ReportError("OnSocketConnect",iErrorCode);

        //We are done
        QueryDone(TRUE,
                  TRUE);

        //Exit
        return FALSE;
    }

    //Send the URL
    if (!SendURL(m_sDataToSend))
    {
        //Report it
        ReportError("OnSocketConnect","Failed to send data!");

        //We are done
        QueryDone(TRUE,
                  TRUE);

        //Exit
        return FALSE;
    }

    //Set the timeout
    SetTimeout(m_dwTimeout);

    //Done
    return TRUE;
}
ERROR_HANDLER_RETURN("OnSocketConnect",FALSE)

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

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