Share via


HttpConnectionParams.SetTcpNoDelay(IHttpParams, Boolean) Method

Definition

Determines whether Nagle's algorithm is to be used.

[Android.Runtime.Register("setTcpNoDelay", "(Lorg/apache/http/params/HttpParams;Z)V", "")]
public static void SetTcpNoDelay (Org.Apache.Http.Params.IHttpParams? params, bool value);
[<Android.Runtime.Register("setTcpNoDelay", "(Lorg/apache/http/params/HttpParams;Z)V", "")>]
static member SetTcpNoDelay : Org.Apache.Http.Params.IHttpParams * bool -> unit

Parameters

params
IHttpParams
value
Boolean

true if the Nagle's algorithm is to NOT be used (that is enable TCP_NODELAY), false otherwise.

Attributes

Remarks

Determines whether Nagle's algorithm is to be used. The Nagle's algorithm tries to conserve bandwidth by minimizing the number of segments that are sent. When applications wish to decrease network latency and increase performance, they can disable Nagle's algorithm (that is enable TCP_NODELAY). Data will be sent earlier, at the cost of an increase in bandwidth consumption.

Java documentation for org.apache.http.params.HttpConnectionParams.setTcpNoDelay(org.apache.http.params.HttpParams, boolean).

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