Jazyk

ServerSocket.AcceptAsync Method

Definition

Waits for and accepts a client connection on a thread-pool thread.

public System.Threading.Tasks.Task<Java.Net.Socket?> AcceptAsync();
member this.AcceptAsync : unit -> System.Threading.Tasks.Task<Java.Net.Socket>

Returns

A task whose result is the socket returned by Accept() for the accepted connection.

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