SocketImpl.InterfaceConsts.SoRcvbuf 字段

定义

注意

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

设置平台用于传入网络 I/O 的基础缓冲区的大小的提示。

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

字段值

Value = 4098
属性

注解

设置平台用于传入网络 I/O 的基础缓冲区的大小的提示。 在集中使用时,这是应用程序内核关于要用于通过套接字接收数据的缓冲区大小的建议。 在 get 中使用时,这必须返回平台在此套接字上接收数据时实际使用的缓冲区的大小。

适用于所有套接字:SocketImpl、DatagramSocketImpl

Java文档java.net.SocketOptions.SO_RCVBUF

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

适用于