SocketOptions.SoReuseaddr Field

Definition

Caution

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

Sets SO_REUSEADDR for a socket.

[Android.Runtime.Register("SO_REUSEADDR")]
[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 SoReuseaddr = 4;
[<Android.Runtime.Register("SO_REUSEADDR")>]
[<System.Obsolete("This constant will be removed in the future version. Use Java.Net.SocketOption enum directly instead of this field.", true)>]
val mutable SoReuseaddr : Java.Net.SocketOption

Field Value

Value = 4
Attributes

Remarks

Sets SO_REUSEADDR for a socket. This is used only for MulticastSockets in java, and it is set by default for MulticastSockets.

Valid for: DatagramSocketImpl

Java documentation for java.net.SocketOptions.SO_REUSEADDR.

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