RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TIpSocket.LookupHostAddr Method

Looks up the host address based on the host name.

Pascal
function LookupHostAddr(const hn: AnsiString): TSocketHost;
C++
__fastcall TSocketHost LookupHostAddr(const AnsiString hn);

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

StrToInt(TcpClient1.LookupHostAddr("borland.com"));

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!