Udostępnij za pośrednictwem


HttpConnectionParams.SetSoTimeout(IHttpParams, Int32) Method

Definition

Sets the default socket timeout (SO_TIMEOUT) in milliseconds which is the timeout for waiting for data.

[Android.Runtime.Register("setSoTimeout", "(Lorg/apache/http/params/HttpParams;I)V", "")]
public static void SetSoTimeout (Org.Apache.Http.Params.IHttpParams? params, int timeout);
[<Android.Runtime.Register("setSoTimeout", "(Lorg/apache/http/params/HttpParams;I)V", "")>]
static member SetSoTimeout : Org.Apache.Http.Params.IHttpParams * int -> unit

Parameters

params
IHttpParams
timeout
Int32

Timeout in milliseconds

Attributes

Remarks

Sets the default socket timeout (SO_TIMEOUT) in milliseconds which is the timeout for waiting for data. A timeout value of zero is interpreted as an infinite timeout. This value is used when no socket timeout is set in the method parameters.

Java documentation for org.apache.http.params.HttpConnectionParams.setSoTimeout(org.apache.http.params.HttpParams, int).

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