HttpConnectionParams.SetTcpNoDelay(IHttpParams, Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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.