Share via


LocalSocket.Connect Method

Definition

Overloads

Connect(LocalSocketAddress)

Connects this socket to an endpoint.

Connect(LocalSocketAddress, Int32)

Connects this socket to an endpoint.

Connect(LocalSocketAddress)

Connects this socket to an endpoint.

[Android.Runtime.Register("connect", "(Landroid/net/LocalSocketAddress;)V", "GetConnect_Landroid_net_LocalSocketAddress_Handler")]
public virtual void Connect (Android.Net.LocalSocketAddress? endpoint);
[<Android.Runtime.Register("connect", "(Landroid/net/LocalSocketAddress;)V", "GetConnect_Landroid_net_LocalSocketAddress_Handler")>]
abstract member Connect : Android.Net.LocalSocketAddress -> unit
override this.Connect : Android.Net.LocalSocketAddress -> unit

Parameters

endpoint
LocalSocketAddress

endpoint address

Attributes

Exceptions

if 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.

Java documentation for android.net.LocalSocket.connect(android.net.LocalSocketAddress).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

Connect(LocalSocketAddress, Int32)

Connects this socket to an endpoint.

[Android.Runtime.Register("connect", "(Landroid/net/LocalSocketAddress;I)V", "GetConnect_Landroid_net_LocalSocketAddress_IHandler")]
public virtual void Connect (Android.Net.LocalSocketAddress? endpoint, int timeout);
[<Android.Runtime.Register("connect", "(Landroid/net/LocalSocketAddress;I)V", "GetConnect_Landroid_net_LocalSocketAddress_IHandler")>]
abstract member Connect : Android.Net.LocalSocketAddress * int -> unit
override this.Connect : Android.Net.LocalSocketAddress * int -> unit

Parameters

endpoint
LocalSocketAddress

endpoint address

timeout
Int32
Attributes

Exceptions

Remarks

Java documentation for android.net.LocalSocket.connect(android.net.LocalSocketAddress).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to