RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TIpSocket.LocalPort Property

Specifies the ID number of the port used by the socket connection.

Pascal
property LocalPort: TSocketPort;
C++
__property TSocketPort LocalPort;

Use LocalPort to determine the port number that is bound to the socket connection. For server endpoints of listening connections, LocalPort is the ID associated with the service the server socket provides. For client or server endpoints of connections to another socket, LocalPort is usually an arbitrary value picked when the connection was made.  

Many values of LocalPort are associated by convention with a particular service such as FTP or HTTP. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!