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

Syntax

[Android.Runtime.Register("connect", "(Ljava/net/InetAddress;I)V", "GetConnect_Ljava_net_InetAddress_IHandler")]
protected abstract void Connect (InetAddress address, int port)

Parameters

address
the remote host address 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 address 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