Android.Net.LocalSocket.Connect Method
Connects this socket to an endpoint.

Syntax

[Android.Runtime.Register("connect", "(Landroid/net/LocalSocketAddress;)V", "GetConnect_Landroid_net_LocalSocketAddress_Handler")]
public virtual void Connect (LocalSocketAddress endpoint)

Parameters

endpoint
endpoint address

Exceptions

TypeReason
Java.IO.IOExceptionif socket is in invalid state or the address does not exist.

Remarks

Connects this socket to an endpoint. May only be called on an instance that has not yet been connected.

[Android Documentation]

Requirements

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