次の方法で共有


StandardSocketOptions.SoBroadcast Property

Definition

Allow transmission of broadcast datagrams.

[Android.Runtime.Register("SO_BROADCAST", ApiSince=24)]
public static Java.Net.ISocketOption? SoBroadcast { get; }
[<Android.Runtime.Register("SO_BROADCAST", ApiSince=24)>]
static member SoBroadcast : Java.Net.ISocketOption

Property Value

Attributes

Remarks

Allow transmission of broadcast datagrams.

The value of this socket option is a Boolean that represents whether the option is enabled or disabled. The option is specific to datagram-oriented sockets sending to java.net.Inet4Address IPv4 broadcast addresses. When the socket option is enabled then the socket can be used to send <em>broadcast datagrams</em>.

The initial value of this socket option is FALSE. The socket option may be enabled or disabled at any time. Some operating systems may require that the Java virtual machine be started with implementation specific privileges to enable this option or send broadcast datagrams.

Java documentation for java.net.StandardSocketOptions.SO_BROADCAST.

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