RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TIpSocket.LookupHostName Method

Looks up the host name based on the IP address.

Pascal
function LookupHostName(const ipaddr: string): TSocketHost;
C++
__fastcall TSocketHost LookupHostName(const AnsiString ipaddr);

Use LookupHostName to look up the host name based on the machine's IP address. For example:

TcpClient1.LookupHostName("123.60.192.10");

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!