System.Win.ScktComp.TAbstractSocket.Address

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Address: string read FAddress write SetAddress;

C++

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

Properties

Type Visibility Source Unit Parent
property protected
System.Win.ScktComp.pas
System.Win.ScktComp.hpp
System.Win.ScktComp TAbstractSocket

Description

Specifies the IP address of the server system.

Address is a string of four numeric (byte) values in the standard Internet dot notation, such as

123.197.1.2

For client sockets, set Address to the IP address of the server to which the socket should connect. When the connection is opened, the value of Address is bound to the connection.

If the socket specifies the Host property, the address for the connection is taken from the IP address associated with Host, rather than the value of Address. Specifying the server system by giving the IP address is faster, because the socket doesn't need to search for the IP address associated with the host name before it can locate the server system.

A single system may support more than one IP address.

Note: Trying to change Address when the connection is open will raise an ESocketError exception.

See Also