![]() |
GetWhoisServer() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Protected Function |
Declared in: WhoisSocket.h |
const std::string & GetWhoisServer( const std::string& rURL) const;
try { //Get the last part of the address std::string::size_type aPos; aPos=rURL.find_last_of('.'); //Do we have it if (aPos==std::string::npos) return m_sEmpty; //Check the size of the extension if (rURL.length()-aPos>4) return m_sEmpty; //Take it std::string::size_type aCopied; char aExtension[10]; aCopied=rURL.copy(aExtension,rURL.length()-aPos-1,aPos+1); aExtension[aCopied]=0; //Convert it to upper case strupr(aExtension); //Copy it into a string std::string sExtension; sExtension=aExtension; //Look in the map WhoisMAP::const_iterator aIterator; aIterator=m_aData.find(sExtension); //Do we have it if (aIterator!=m_aData.end()) return aIterator->second; else //Not found return m_sEmpty; } ERROR_HANDLER_RETURN("GetWhoisServer",m_sEmpty)
![]() |
Site content copyright © 2003 Komodia LTD.. See the About page for additional notices. This page last updated: 24 Feb 2003. |