Compartilhar via


StandardSocketOptions.SoReuseport Property

Definition

Re-use port.

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

Property Value

Attributes

Remarks

Re-use port.

The value of this socket option is a Boolean that represents whether the option is enabled or disabled. The exact semantics of this socket option are socket type and system dependent.

In the case of stream-oriented sockets, this socket option usually allows multiple listening sockets to be bound to both same address and same port.

For datagram-oriented sockets the socket option usually allows multiple UDP sockets to be bound to the same address and port.

An implementation allows this socket option to be set before the socket is bound or connected. Changing the value of this socket option after the socket is bound has no effect.

Added in 9.

Java documentation for java.net.StandardSocketOptions.SO_REUSEPORT.

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