Compartilhar via


SocketOptions.TcpNodelay Field

Definition

Caution

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

Disable Nagle's algorithm for this connection.

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

Field Value

Value = 1
Attributes

Remarks

Disable Nagle's algorithm for this connection. Written data to the network is not buffered pending acknowledgement of previously written data.

Valid for TCP only: SocketImpl.

Java documentation for java.net.SocketOptions.TCP_NODELAY.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to