System.Net.Socket.TSocket.RemoteHost
Delphi
property RemoteHost: string read GetRemoteHost;
C++
__property System::UnicodeString RemoteHost = {read=GetRemoteHost};
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| property | public | System.Net.Socket.pas System.Net.Socket.hpp |
System.Net.Socket | TSocket |
Description
Remote host name.
If your socket is closed, RemoteHost is an empty string.
Exceptions
Reading the value of RemoteHost can raise any of the following exceptions:
| Exception | Exception.Message | Scenarios |
|---|---|---|
|
Network socket error: <error message> (<error code>), on API 'getpeername' |
|