![]() |
ExtractAdditionalWhoisServer() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Private Function |
Declared in: WhoisSocket.h |
std::string ExtractAdditionalWhoisServer( const std::string rWhoisQuery) const;
Extract the addtional DNS server
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","")
![]() |
Site content copyright © 2003 Komodia LTD.. See the About page for additional notices. This page last updated: 24 Feb 2003. |