Language

LocalSocket.ConnectAsync Method

Definition

Overloads

Name Description
ConnectAsync(LocalSocketAddress)

Runs the local-socket connection attempt on a thread-pool thread.

ConnectAsync(LocalSocketAddress, Int32)

Runs the unsupported timeout-taking Connect overload on a thread-pool thread.

ConnectAsync(LocalSocketAddress)

Runs the local-socket connection attempt on a thread-pool thread.

public System.Threading.Tasks.Task ConnectAsync(Android.Net.LocalSocketAddress? endpoint);
member this.ConnectAsync : Android.Net.LocalSocketAddress -> System.Threading.Tasks.Task

Parameters

endpoint
LocalSocketAddress

The UNIX-domain socket endpoint passed to Connect.

Returns

A task that completes when Connect completes, or faults if Connect throws.

Remarks

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

ConnectAsync(LocalSocketAddress, Int32)

Runs the unsupported timeout-taking Connect overload on a thread-pool thread.

public System.Threading.Tasks.Task ConnectAsync(Android.Net.LocalSocketAddress? endpoint, int timeout);
member this.ConnectAsync : Android.Net.LocalSocketAddress * int -> System.Threading.Tasks.Task

Parameters

endpoint
LocalSocketAddress

The endpoint passed to the unsupported Connect overload.

timeout
Int32

The timeout argument passed to Connect; the native overload does not use it and always throws.

Returns

A task that faults with the exception from the unsupported Connect overload.

Remarks

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