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

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

virtual BOOL OnSocketClose(
    int iErrorCode);

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

try
{
    //Kill the timeout
    KillTimer();

    //Close the socket
    if (!Close())
        ReportError("OnSocketClose","Failed to close socket!");

    //Recreate it
    if (!Create())
    {
        //Report it
        ReportError("OnSocketClose","Failed to create socket!");

        //Exit
        return FALSE;
    }

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

    //Done
    return TRUE;
}
ERROR_HANDLER_RETURN("OnSocketClose",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.