Langage

SocketImpl.InterfaceConsts.SoReuseport Champ

Définition

Attention

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

Définit SO_REUSEPORT pour un socket.

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

Valeur de champ

Value = 14
Attributs

Remarques

Définit SO_REUSEPORT pour un socket. Cette option active et désactive la possibilité d’avoir plusieurs sockets à écouter la même adresse et le même port.

Valide pour : SocketImpl, DatagramSocketImpl

Ajouté dans 9.

Documentation Java pour java.net.SocketOptions.SO_REUSEPORT.

Les parties de cette page sont des modifications basées sur le travail créé et partagé par le projet Android Open Source et utilisés en fonction des termes décrits dans la licence d’attribution Creative Commons 2.5.

S’applique à