System.Win.ScktComp.TServerSocket.Port
Delphi
property Port;
C++
__property Port;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | published | System.Win.ScktComp.pas System.Win.ScktComp.hpp |
System.Win.ScktComp | TServerSocket |
Description
ID number that identifies the connection where the server socket listens for client requests.
Server sockets generally set Port to a predefined value which clients can use to initiate connections.
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.
- Note: Trying to change Port when the connection is open raises an ESocketError exception.