API:System.Win.ScktComp.TClientSocket.Port

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Port: Integer read FPort write SetPort;

C++

__property Port;

Properties

Type Visibility Source Unit Parent
property published
System.Win.ScktComp.pas
System.Win.ScktComp.hpp
System.Win.ScktComp TClientSocket

Description

Specifies the ID number that identifies the server socket connection.

System.Win.ScktComp.TClientSocket.Port inherits from System.Win.ScktComp.TAbstractSocket.Port. All content below this line refers to System.Win.ScktComp.TAbstractSocket.Port.

Specifies the ID number that identifies the server socket connection.

Port numbers allow a single system, identified by the Host or Address property, to host multiple connections simultaneously. Many values of Port are associated by convention with a particular service such as ftp or http.

For server sockets, Port is the ID of the connection on which the server socket listens for client requests. Server sockets generally set Port to a predefined value which clients can use to initiate connections.

For client sockets, Port is the ID of the desired server connection. The value of Port is usually associated with the service the client wishes to use on the server application.

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

See Also