RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TUdpSocket.LocalHost Property

Specifies the name of the local system.

Pascal
property LocalHost: TSocketHost;
C++
__property TSocketHost LocalHost;

Use LocalHost to get the name of the system that is running the application that uses the socket. LocalHost is a string containing the domain name and service of the local socket endpoint, such as http://www.wSite.Com

Port numbers allow a single system, identified by the LocalHostAddr function, to host multiple connections simultaneously. Each combination of LocalPort and LocalHostAddr can only be bound to a single socket connection.  

LocalHost provides an alias for the local IP address given in the LocalHostAddr function. Most Intranets provide host names for the IP addresses of systems on the net. For more information on defining a host name for a given system, contact your network administrator. 

 

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