Class CWhoisSocket::
WhoisIP()
Base ClassesData ItemsConstructorsDestructorsFunctionsCustom CodeGo to hierarchy chart    Prev page: WhoisIPNext page: WhoisIP    Show member index
Public Function Declared in:
WhoisSocket.h

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

BOOL WhoisIP(
    IP aAddress);

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

try
{
    //No server yet
    m_aServer=wsNone;

    //Are we async
    if (!m_bAsync)
    {
        //Try to get the data
        for (int iCounter=wsRipe;
             iCounter>wsNone;
             --iCounter)
        {
            //Try to get the data
            if (!WhoisIP(aAddress,m_aIPWhois[iCounter]))
            {
                //Error
                ReportError("WhoisIP","Failed getting data from server!");

                //Exit
                return FALSE;
            }

            //Try to analyze it
            if (m_sWhoisData.find(m_aWhoisNotFound[iCounter])==std::string::npos)
            {
                //We have it
                m_aServer=(WhoisServer)iCounter;

                //Exit
                return TRUE;
            }
        }

        //Didn't found it
        return FALSE;
    }
    else
    {
        //Set the current server
        m_aProgress=wsRipe;

        //Connect
        return WhoisIP(aAddress,m_aIPWhois[m_aProgress]);
    }
}
ERROR_HANDLER_RETURN("WhoisIP",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.