Share via


Socket.ConnectAsync Method

Definition

Overloads

ConnectAsync(SocketAddress)
ConnectAsync(SocketAddress, Int32)

ConnectAsync(SocketAddress)

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

Parameters

endpoint
SocketAddress

Returns

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(SocketAddress, Int32)

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

Parameters

endpoint
SocketAddress
timeout
Int32

Returns

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