SocketOptions.SoReuseport 字段

定义

注意

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

设置套接字的SO_REUSEPORT。

[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

字段值

Value = 14
属性

注解

设置套接字的SO_REUSEPORT。 此选项允许和禁用多个套接字侦听同一地址和端口的功能。

有效对象:SocketImpl、DatagramSocketImpl

已在 9 中添加。

Java文档java.net.SocketOptions.SO_REUSEPORT

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于