Compartilhar via


SelectorProvider.OpenSocketChannel Method

Definition

Opens a socket channel.

[Android.Runtime.Register("openSocketChannel", "()Ljava/nio/channels/SocketChannel;", "GetOpenSocketChannelHandler")]
public abstract Java.Nio.Channels.SocketChannel? OpenSocketChannel ();
[<Android.Runtime.Register("openSocketChannel", "()Ljava/nio/channels/SocketChannel;", "GetOpenSocketChannelHandler")>]
abstract member OpenSocketChannel : unit -> Java.Nio.Channels.SocketChannel

Returns

The new channel

Attributes

Exceptions

if an I/O error occurs.

Remarks

Opens a socket channel.

Java documentation for java.nio.channels.spi.SelectorProvider.openSocketChannel().

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