System.Net.Socket.TSocket.RemotePort

From RAD Studio API Documentation
Jump to: navigation, search

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

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