AsynchronousServerSocketChannel.Open Method

Definition

Overloads

Open()

Opens an asynchronous server-socket channel.

Open(AsynchronousChannelGroup)

Opens an asynchronous server-socket channel.

Open()

Opens an asynchronous server-socket channel.

[Android.Runtime.Register("open", "()Ljava/nio/channels/AsynchronousServerSocketChannel;", "", ApiSince=26)]
public static Java.Nio.Channels.AsynchronousServerSocketChannel? Open ();
[<Android.Runtime.Register("open", "()Ljava/nio/channels/AsynchronousServerSocketChannel;", "", ApiSince=26)>]
static member Open : unit -> Java.Nio.Channels.AsynchronousServerSocketChannel

Returns

A new asynchronous server socket channel

Attributes

Remarks

Opens an asynchronous server-socket channel.

This method returns an asynchronous server socket channel that is bound to the <em>default group</em>. This method is equivalent to evaluating the expression: <blockquote>

open((AsynchronousChannelGroup)null);

</blockquote>

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

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

Open(AsynchronousChannelGroup)

Opens an asynchronous server-socket channel.

[Android.Runtime.Register("open", "(Ljava/nio/channels/AsynchronousChannelGroup;)Ljava/nio/channels/AsynchronousServerSocketChannel;", "", ApiSince=26)]
public static Java.Nio.Channels.AsynchronousServerSocketChannel? Open (Java.Nio.Channels.AsynchronousChannelGroup? group);
[<Android.Runtime.Register("open", "(Ljava/nio/channels/AsynchronousChannelGroup;)Ljava/nio/channels/AsynchronousServerSocketChannel;", "", ApiSince=26)>]
static member Open : Java.Nio.Channels.AsynchronousChannelGroup -> Java.Nio.Channels.AsynchronousServerSocketChannel

Parameters

group
AsynchronousChannelGroup

The group to which the newly constructed channel should be bound, or null for the default group

Returns

A new asynchronous server socket channel

Attributes

Remarks

Opens an asynchronous server-socket channel.

The new channel is created by invoking the java.nio.channels.spi.AsynchronousChannelProvider#openAsynchronousServerSocketChannel openAsynchronousServerSocketChannel method on the java.nio.channels.spi.AsynchronousChannelProvider object that created the given group. If the group parameter is null then the resulting channel is created by the system-wide default provider, and bound to the <em>default group</em>.

Java documentation for java.nio.channels.AsynchronousServerSocketChannel.open(java.nio.channels.AsynchronousChannelGroup).

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