RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TSocketConnection.Host Property

Specifies the host name of the server.

Pascal
property Host: string;
C++
__property AnsiString Host;

Use Host to specify the host name of the server system to which the client application should connect. In addition to the host name, you must provide a value for the Port property so that the socket connection component can locate the listening socket on the server system. 

Sockets require either a Host name or an IP address to locate the server system. You can use the Address property instead of the Host property to specify the server system using an IP address. The Host and Address properties are mutually exclusive: Setting Host causes Address to be set to an empty string, and vice versa.

Note: If the socket connection component uses an Object Broker, you do not need to specify the Host property. Instead, the Object Broker supplies a host name for a server that is located dynamically at runtime. Explicitly setting the Host property overrides the value supplied by the Object Broker, but such overridden values are not saved with the socket connection component.
 

 

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