Class CWhoisSocket::
ExtractAdditionalWhoisServer()
Base ClassesData ItemsConstructorsDestructorsFunctionsCustom CodeGo to hierarchy chart    Prev page: ~CWhoisSocketNext page: GetAdditionalWhoisServer    Show member index
Private Function Declared in:
WhoisSocket.h

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

std::string ExtractAdditionalWhoisServer(
    const std::string rWhoisQuery) const;

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

Extract the addtional DNS server

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

try
{
    if (!rWhoisQuery.length())
        return "";

    //Get the last part of the address
    std::string::size_type aPos;
    aPos=rWhoisQuery.find(m_sWhoisClause);

    //Do we have it
    if (aPos==std::string::npos)
        return "";

    //Char to find
    char aChar;
    aChar=10;

    //Find the end of line
    std::string::size_type aLastPos;
    aLastPos=rWhoisQuery.find_first_of(aChar,aPos);

    //Can't be npos but check anyway
    if (aLastPos==std::string::npos)
        return "";

    //We don't need the header
    aPos+=m_sWhoisClause.length();

    //Get that string
    return rWhoisQuery.substr(aPos,aLastPos-aPos);
}
ERROR_HANDLER_RETURN("ExtractAdditionalWhoisServer","")

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