SocketImpl.InterfaceConsts.SoSndbuf 字段

定义

注意

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

字段值

Value = 4097
属性

注解

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

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

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

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

适用于