AsynchronousSocketChannel.Open Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Open() |
Opens an asynchronous socket channel. |
Open(AsynchronousChannelGroup) |
Opens an asynchronous socket channel. |
Open()
Opens an asynchronous socket channel.
[Android.Runtime.Register("open", "()Ljava/nio/channels/AsynchronousSocketChannel;", "", ApiSince=26)]
public static Java.Nio.Channels.AsynchronousSocketChannel? Open ();
[<Android.Runtime.Register("open", "()Ljava/nio/channels/AsynchronousSocketChannel;", "", ApiSince=26)>]
static member Open : unit -> Java.Nio.Channels.AsynchronousSocketChannel
Returns
A new asynchronous socket channel
- Attributes
Remarks
Opens an asynchronous socket channel.
This method returns an asynchronous 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.AsynchronousSocketChannel.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 socket channel.
[Android.Runtime.Register("open", "(Ljava/nio/channels/AsynchronousChannelGroup;)Ljava/nio/channels/AsynchronousSocketChannel;", "", ApiSince=26)]
public static Java.Nio.Channels.AsynchronousSocketChannel? Open (Java.Nio.Channels.AsynchronousChannelGroup? group);
[<Android.Runtime.Register("open", "(Ljava/nio/channels/AsynchronousChannelGroup;)Ljava/nio/channels/AsynchronousSocketChannel;", "", ApiSince=26)>]
static member Open : Java.Nio.Channels.AsynchronousChannelGroup -> Java.Nio.Channels.AsynchronousSocketChannel
Parameters
- group
- AsynchronousChannelGroup
The group to which the newly constructed channel should be bound,
or null
for the default group
Returns
A new asynchronous socket channel
- Attributes
Remarks
Opens an asynchronous socket channel.
The new channel is created by invoking the AsynchronousChannelProvider#openAsynchronousSocketChannel openAsynchronousSocketChannel
method on the AsynchronousChannelProvider
that created the 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>.
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.