SelectorProvider.OpenDatagramChannel Method

Definition

Overloads

OpenDatagramChannel()

Opens a datagram channel.

OpenDatagramChannel(IProtocolFamily)

Opens a datagram channel.

OpenDatagramChannel()

Opens a datagram channel.

[Android.Runtime.Register("openDatagramChannel", "()Ljava/nio/channels/DatagramChannel;", "GetOpenDatagramChannelHandler")]
public abstract Java.Nio.Channels.DatagramChannel? OpenDatagramChannel ();
[<Android.Runtime.Register("openDatagramChannel", "()Ljava/nio/channels/DatagramChannel;", "GetOpenDatagramChannelHandler")>]
abstract member OpenDatagramChannel : unit -> Java.Nio.Channels.DatagramChannel

Returns

The new channel

Attributes

Exceptions

if an I/O error occurs.

Remarks

Opens a datagram channel.

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

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

OpenDatagramChannel(IProtocolFamily)

Opens a datagram channel.

[Android.Runtime.Register("openDatagramChannel", "(Ljava/net/ProtocolFamily;)Ljava/nio/channels/DatagramChannel;", "GetOpenDatagramChannel_Ljava_net_ProtocolFamily_Handler", ApiSince=24)]
public abstract Java.Nio.Channels.DatagramChannel? OpenDatagramChannel (Java.Net.IProtocolFamily? family);
[<Android.Runtime.Register("openDatagramChannel", "(Ljava/net/ProtocolFamily;)Ljava/nio/channels/DatagramChannel;", "GetOpenDatagramChannel_Ljava_net_ProtocolFamily_Handler", ApiSince=24)>]
abstract member OpenDatagramChannel : Java.Net.IProtocolFamily -> Java.Nio.Channels.DatagramChannel

Parameters

family
IProtocolFamily

The protocol family

Returns

A new datagram channel

Attributes

Remarks

Opens a datagram channel.

Added in 1.7.

Java documentation for java.nio.channels.spi.SelectorProvider.openDatagramChannel(java.net.ProtocolFamily).

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