Język

SocketChannel.ConnectAsync(SocketAddress) Method

Definition

Runs the synchronous socket connect operation in a task.

public System.Threading.Tasks.Task<bool> ConnectAsync(Java.Net.SocketAddress? remote);
member this.ConnectAsync : Java.Net.SocketAddress -> System.Threading.Tasks.Task<bool>

Parameters

remote
SocketAddress

The remote address to which this channel's socket is to connect.

Returns

A task whose result is true if the connection is established, or false if this channel is non-blocking and the connection is still in progress. A pending connection must be completed with FinishConnect().

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