Java.Net.SocketImpl.Connect Method
Connects this socket to the specified remote host and port number.

Syntax

[Android.Runtime.Register("connect", "(Ljava/lang/String;I)V", "GetConnect_Ljava_lang_String_IHandler")]
protected abstract void Connect (string host, int port)

Parameters

host
the remote host this socket has to be connected to.
port
the remote port on which this socket has to be connected.

Exceptions

TypeReason
Java.IO.IOExceptionif an error occurs while connecting to the remote host.

Remarks

Connects this socket to the specified remote host and port number.

[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