次の方法で共有


DatagramChannel.Socket Method

Definition

Retrieves a datagram socket associated with this channel.

[Android.Runtime.Register("socket", "()Ljava/net/DatagramSocket;", "GetSocketHandler")]
public abstract Java.Net.DatagramSocket? Socket ();
[<Android.Runtime.Register("socket", "()Ljava/net/DatagramSocket;", "GetSocketHandler")>]
abstract member Socket : unit -> Java.Net.DatagramSocket

Returns

A datagram socket associated with this channel

Attributes

Remarks

Retrieves a datagram socket associated with this channel.

The returned object will not declare any public methods that are not declared in the java.net.DatagramSocket class.

Java documentation for java.nio.channels.DatagramChannel.socket().

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