System.Net.Socket.TSocket.RemoteEndpoint

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property RemoteEndpoint: TNetEndpoint read GetRemoteEndpoint;

C++

__property TNetEndpoint RemoteEndpoint = {read=GetRemoteEndpoint};

Properties

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

Description

Remote endpoint address.

If your socket is closed, RemoteEndpoint is 0.

Exceptions

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

Exception Exception.Message Scenarios

ESocketError

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

See Also