Java.Net.InetSocketAddress.CreateUnresolved Method
Creates an InetSocketAddress without trying to resolve the hostname into an InetAddress.

Syntax

[Android.Runtime.Register("createUnresolved", "(Ljava/lang/String;I)Ljava/net/InetSocketAddress;", "")]
public static InetSocketAddress CreateUnresolved (string host, int port)

Parameters

host
the specified hostname to which this socket is bound.
port
the specified port number to which this socket is bound.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.IllegalArgumentExceptionif the hostname host is null or the port is not in the range between 0 and 65535.

Remarks

Creates an InetSocketAddress without trying to resolve the hostname into an InetAddress. The address field is marked as unresolved.

[Android Documentation]

Requirements

Namespace: Java.Net
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1