다음을 통해 공유


AsynchronousChannelProvider.OpenAsynchronousSocketChannel Method

Definition

Opens an asynchronous socket channel.

[Android.Runtime.Register("openAsynchronousSocketChannel", "(Ljava/nio/channels/AsynchronousChannelGroup;)Ljava/nio/channels/AsynchronousSocketChannel;", "GetOpenAsynchronousSocketChannel_Ljava_nio_channels_AsynchronousChannelGroup_Handler", ApiSince=26)]
public abstract Java.Nio.Channels.AsynchronousSocketChannel? OpenAsynchronousSocketChannel (Java.Nio.Channels.AsynchronousChannelGroup? group);
[<Android.Runtime.Register("openAsynchronousSocketChannel", "(Ljava/nio/channels/AsynchronousChannelGroup;)Ljava/nio/channels/AsynchronousSocketChannel;", "GetOpenAsynchronousSocketChannel_Ljava_nio_channels_AsynchronousChannelGroup_Handler", ApiSince=26)>]
abstract member OpenAsynchronousSocketChannel : Java.Nio.Channels.AsynchronousChannelGroup -> Java.Nio.Channels.AsynchronousSocketChannel

Parameters

group
AsynchronousChannelGroup

The group to which the channel is bound, or null to bind to the default group

Returns

The new channel

Attributes

Remarks

Opens an asynchronous socket channel.

Java documentation for java.nio.channels.spi.AsynchronousChannelProvider.openAsynchronousSocketChannel(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