Converts the host address and port into an IP endpoint. If the host address is not an IP address, returns null.
Namespace:
Rebex.Net
Assembly:
Rebex.Networking (in Rebex.Networking.dll)
Syntax
Visual Basic |
---|
Public Shared Function ToEndPoint ( _ host As String, _ port As Integer _ ) As IPEndPoint |
C# |
---|
public static IPEndPoint ToEndPoint( string host, int port ) |
Parameters
- host
- Type: System..::..String
Host name or IP address.
- port
- Type: System..::..Int32
Host port.