Indy 9
TIdWhois
Hierarchy, Properties, Methods, Events, See Also, Unit: IdWhois
Implements a WhoIs or Nickname client.
TIdWhois = class(TIdTCPClient)
Unit
IdWhois
Description
TIdWhois implements the Nickname or Whois protocol (RFC 954) as a client. Whois is a simple database query system that is commonly used for consulting domain registration records although it can be used for other simple directory services.

TIdWhois.Create
TIdWhois, See Also
Constructor for the object instance.
constructor Create(AOwner: TComponent); override;
Description
Create is the constructor for the object instance. Creates initializes a new TIdWhoIs component and sets the default values for the port property (IdPORT_WHOIS) and the host property ('whois.internic.net').

TIdWhois.WhoIs
TIdWhois, See Also
Performs a query for a domain name.
function WhoIs(const ADomain: string): string;
Parameters
const ADomain: string
Domain query to send to the server.
Return Value
String - Results from the WhoIs server.
Description
WhoIs is a String function that queries the WhoIs server using the query value specified in the ADomain argument. Assign values to the Host and Port properties for the appropriate server before calling this method.

WhoIs calls Connect to open the connection to the WhoIs server identified in Host and Port, and writes the query in ADomain to the WhoIs server. WhoIs reads pending resuilts using the AllData method prior to calling Disconnect.


Created with Doc-O-Matic 2 donated to Project JEDI. Commercial license available from the Doc-O-Matic site.