Method GetRemoteEndpoint
GetRemoteEndpoint(NetworkConnection)
Get the remote endpoint of a connection (the endpoint used to reach the remote peer on the connection).
Declaration
public NetworkEndpoint GetRemoteEndpoint(NetworkConnection connection)Parameters
| Type | Name | Description | 
|---|---|---|
| NetworkConnection | connection | Connection to get the endpoint of. | 
Returns
| Type | Description | 
|---|---|
| NetworkEndpoint | The remote endpoint of the connection. | 
Remarks
The returned value should not be assumed to be constant for a given connection, as it is possible for remote peers to change address during the course of a session (e.g. if a mobile client changes IP address because they're hopping between cell towers).