![]() |
ExtractAdditionalWhoisServer() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
| Private Function |
Declared in: WhoisSocket.h |
Declaration
std::string ExtractAdditionalWhoisServer(
const std::string rWhoisQuery) const;
DescriptionExtract the addtional DNS server
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
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. |