SocketImpl.InterfaceConsts.SoReuseaddr 字段

定义

注意

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

为套接字设置SO_REUSEADDR。

[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

字段值

Value = 4
属性

注解

为套接字设置SO_REUSEADDR。 这仅用于 Java 中的 MulticastSocket,并且默认为 MulticastSocket 设置。

有效对象:DatagramSocketImpl

适用于 . 的 java.net.SocketOptions.SO_REUSEADDRJava 文档

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于