語言

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 的底層緩衝區大小提示。 當 set 使用時,這是應用程式向核心建議,關於資料透過套接字傳送時可用的緩衝區大小。 在 get 中使用時,必須回傳平台實際在該套接字上傳送資料時所使用的緩衝區大小。

適用於所有套接字:SocketImpl、DatagramSocketImpl

Java 文件 java.net.SocketOptions.SO_SNDBUF

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於