Open main menu

RAD Studio API Documentation β

System.Net.Socket.TSocket.RemotePort

Delphi

property RemotePort: Integer read GetRemotePort;

C++

__property int RemotePort = {read=GetRemotePort, nodefault};

Properties

Type Visibility Source Unit Parent
property public
System.Net.Socket.pas
System.Net.Socket.hpp
System.Net.Socket TSocket

Contents

Description

Remote port number.

If your socket is closed, RemotePort is 0.

Exceptions

Reading the value of RemotePort can raise any of the following exceptions:

Exception Exception.Message Scenarios

ESocketError

Network socket error: <error message> (<error code>), on API 'getpeername'

See Also