DatagramSocketImpl.InterfaceConsts.SoBroadcast Field

Definition

Caution

This constant will be removed in the future version. Use Java.Net.SocketOption enum directly instead of this field.

Sets SO_BROADCAST for a socket.

[Android.Runtime.Register("SO_BROADCAST")]
[System.Obsolete("This constant will be removed in the future version. Use Java.Net.SocketOption enum directly instead of this field.", true)]
public const Java.Net.SocketOption SoBroadcast = 32;
[<Android.Runtime.Register("SO_BROADCAST")>]
[<System.Obsolete("This constant will be removed in the future version. Use Java.Net.SocketOption enum directly instead of this field.", true)>]
val mutable SoBroadcast : Java.Net.SocketOption

Field Value

Value = 32
Attributes

Remarks

Sets SO_BROADCAST for a socket. This option enables and disables the ability of the process to send broadcast messages. It is supported for only datagram sockets and only on networks that support the concept of a broadcast message (e.g. Ethernet, token ring, etc.), and it is set by default for DatagramSockets.

Added in 1.4.

Java documentation for java.net.SocketOptions.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