Datasnap.Win.SConnect.TSocketConnection.Host

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Host: string read FHost write SetHost stored IsHostStored;

C++

__property System::UnicodeString Host = {read=FHost, write=SetHost, stored=IsHostStored};

Properties

Type Visibility Source Unit Parent
property published
Datasnap.Win.SConnect.pas
Datasnap.Win.SConnect.hpp
Datasnap.Win.SConnect TSocketConnection

Description

Specifies the host name of the server.

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.

See Also