Method | Description | |
---|---|---|
BestLocalEndPoint ( IPEndPoint remoteIPEndPoint ) : IPEndPoint |
Determines the most appropriate local end point to contact the provided remote end point. Testing shows this method takes on average 1.6ms to return.
|
|
GetIPv4NetworkBroadcastAddress ( IPAddress localIPAddress ) : IPAddress |
Returns the network broadcast address for the provided local IP address
|
|
ParseEndPointFromString ( string ipAddressAndPort ) : IPEndPoint |
Converts an IPAddress in string form (IPv4 or IPv6) with an appended port number, e.g. 192.168.0.10:10000 or ::1:10000, into an System.Net.IPEndPoint.
|
Method | Description | |
---|---|---|
AttemptBestIPAddressGuess ( IPAddress targetIPAddress ) : IPAddress | ||
GetBestInterface ( |
public static BestLocalEndPoint ( IPEndPoint remoteIPEndPoint ) : IPEndPoint | ||
remoteIPEndPoint | IPEndPoint | The remote end point |
return | IPEndPoint |
public static GetIPv4NetworkBroadcastAddress ( IPAddress localIPAddress ) : IPAddress | ||
localIPAddress | IPAddress | |
return | IPAddress |
public static ParseEndPointFromString ( string ipAddressAndPort ) : IPEndPoint | ||
ipAddressAndPort | string | The IP and Port to be parsed |
return | IPEndPoint |