Chooses the most appropriate IP endpoint to use from the host entry.

Namespace:  Rebex.Net
Assembly:  Rebex.Networking (in Rebex.Networking.dll)

Syntax

Visual Basic
Public Shared Function ToEndPoint ( _
	hostEntry As IPHostEntry, _
	port As Integer _
) As IPEndPoint
C#
public static IPEndPoint ToEndPoint(
	IPHostEntry hostEntry,
	int port
)

Parameters

hostEntry
Type: System.Net..::..IPHostEntry
Host entry.
port
Type: System..::..Int32
Port.

Return Value

IP endpoint.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also