Java.Net.SocketImpl.Connect Method
Connects this socket to the remote host address and port number specified by the SocketAddress object with the given timeout.

Syntax

[Android.Runtime.Register("connect", "(Ljava/net/SocketAddress;I)V", "GetConnect_Ljava_net_SocketAddress_IHandler")]
protected abstract void Connect (SocketAddress remoteAddr, int timeout)

Parameters

remoteAddr
the remote host address and port number to connect to.
timeout
the timeout value in milliseconds.

Exceptions

TypeReason
Java.IO.IOExceptionif an error occurs while connecting.

Remarks

Connects this socket to the remote host address and port number specified by the SocketAddress object with the given timeout. This method will block indefinitely if the timeout is set to zero.

[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