AsynchronousServerSocketChannel.Accept Method

Definition

Overloads

Accept()

Accepts a connection.

Accept(Object, ICompletionHandler)

Accepts a connection.

Accept()

Accepts a connection.

[Android.Runtime.Register("accept", "()Ljava/util/concurrent/Future;", "GetAcceptHandler", ApiSince=26)]
public abstract Java.Util.Concurrent.IFuture? Accept ();
[<Android.Runtime.Register("accept", "()Ljava/util/concurrent/Future;", "GetAcceptHandler", ApiSince=26)>]
abstract member Accept : unit -> Java.Util.Concurrent.IFuture

Returns

IFuture

a Future object representing the pending result

Attributes

Remarks

Java documentation for java.nio.channels.AsynchronousServerSocketChannel.accept().

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

Accept(Object, ICompletionHandler)

Accepts a connection.

[Android.Runtime.Register("accept", "(Ljava/lang/Object;Ljava/nio/channels/CompletionHandler;)V", "GetAccept_Ljava_lang_Object_Ljava_nio_channels_CompletionHandler_Handler", ApiSince=26)]
[Java.Interop.JavaTypeParameters(new System.String[] { "A" })]
public abstract void Accept (Java.Lang.Object? attachment, Java.Nio.Channels.ICompletionHandler? handler);
[<Android.Runtime.Register("accept", "(Ljava/lang/Object;Ljava/nio/channels/CompletionHandler;)V", "GetAccept_Ljava_lang_Object_Ljava_nio_channels_CompletionHandler_Handler", ApiSince=26)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "A" })>]
abstract member Accept : Java.Lang.Object * Java.Nio.Channels.ICompletionHandler -> unit

Parameters

attachment
Object

The object to attach to the I/O operation; can be null

handler
ICompletionHandler

The handler for consuming the result

Attributes

Remarks

Java documentation for java.nio.channels.AsynchronousServerSocketChannel.accept(A, java.nio.channels.CompletionHandler<java.nio.channels.AsynchronousSocketChannel, ? super A>).

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