Datasnap.Win.SConnect.TSocketConnection.Address

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Address: string read FAddress write SetAddress stored IsAddressStored;

C++

__property System::UnicodeString Address = {read=FAddress, write=SetAddress, stored=IsAddressStored};

Properties

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

Description

Specifies the IP address of the server.

Use Address to specify the IP address of the application server to which the client application connects. In addition to the address, 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 an IP address or a Host name to locate the server system. You can use the Host property instead of the Address property to specify the server system using a host name. The Address and Host properties are mutually exclusive: Setting Address causes Host 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 Address property. Instead, the Object Broker supplies an Address for a server that is located dynamically at runtime. Explicitly setting the Address property overrides the value supplied by the Object Broker, but such overridden values are not saved with the socket connection component.

See Also