Java.Net.SocketOptions.SoReuseaddr Field
This boolean option specifies whether a reuse of a local address is allowed when another socket has not yet been removed by the operating system.

Value: 4

Syntax

[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.")]
public const SocketOption SoReuseaddr

Remarks

This boolean option specifies whether a reuse of a local address is allowed when another socket has not yet been removed by the operating system.

For connection-oriented sockets, if this option is disabled and if there is another socket in state TIME_WAIT on a given address then another socket binding to that address would fail. Setting this value after a socket is bound has no effect.

For datagram sockets this option determines whether several sockets can listen on the same address; when enabled each socket will receive a copy of the datagram.

See for more information about socket re-use.

[Android Documentation]

Requirements

Namespace: Java.Net
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1