语言

HttpConnectionParams.SetSoTimeout(IHttpParams, Int32) 方法

定义

注意

deprecated

设置默认套接字超时(SO_TIMEOUT以毫秒为单位),即等待数据的超时。

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

参数

params
IHttpParams

要更新的参数集合。 不得为 null。

timeout
Int32

超时(以毫秒为单位)

特性

注解

设置默认套接字超时(SO_TIMEOUT以毫秒为单位),即等待数据的超时。 超时值为零被解释为无限超时。 如果未在方法参数中设置套接字超时,则使用此值。

Java文档org.apache.http.params.HttpConnectionParams.setSoTimeout(org.apache.http.params.HttpParams, int)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于