CWhoisClient::Search Method | ||||||||||||||||||||||
Parameters
Return Value
ExampleCWhoisClient whoisClient; // Connect to the WHOIS server at whois.internic.net if (whoisClient.Connect(_T("whois.internic.net")) == FALSE) { whoisClient.ShowError(); return; } // Request information about the sockettools.com domain name if (whoisClient.Search(_T("sockettools.com")) == WHOIS_ERROR) { whoisClient.ShowError(); whoisClient.Disconnect(); return; } // Read the response from the server, which contains information // about the domain and the registry that maintains the record CString strResult; CString strBuffer; INT nResult; do { if ((nResult = whoisClient.Read(strBuffer)) > 0) strResult += strBuffer; } while (nResult > 0); // If there was an error reading the data, alert the user if (nResult == WHOIS_ERROR) whoisClient.ShowError(); whoisClient.Disconnect(); Requirements
See Also |
||||||||||||||||||||||
Copyright © 2025 Catalyst Development Corporation. All rights reserved. |