次の方法で共有


IOperatedClientConnection.Update Method

Definition

Updates this connection.

[Android.Runtime.Register("update", "(Ljava/net/Socket;Lorg/apache/http/HttpHost;ZLorg/apache/http/params/HttpParams;)V", "GetUpdate_Ljava_net_Socket_Lorg_apache_http_HttpHost_ZLorg_apache_http_params_HttpParams_Handler:Org.Apache.Http.Conn.IOperatedClientConnectionInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void Update (Java.Net.Socket? sock, Org.Apache.Http.HttpHost? target, bool secure, Org.Apache.Http.Params.IHttpParams? params);
[<Android.Runtime.Register("update", "(Ljava/net/Socket;Lorg/apache/http/HttpHost;ZLorg/apache/http/params/HttpParams;)V", "GetUpdate_Ljava_net_Socket_Lorg_apache_http_HttpHost_ZLorg_apache_http_params_HttpParams_Handler:Org.Apache.Http.Conn.IOperatedClientConnectionInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member Update : Java.Net.Socket * Org.Apache.Http.HttpHost * bool * Org.Apache.Http.Params.IHttpParams -> unit

Parameters

sock
Socket

the new socket for communicating with the target host, or null to continue using the old socket. If null is passed, helper objects that depend on the socket should be re-used. In that case, some changes in the parameters will not take effect.

target
HttpHost

the new target host of this connection

secure
Boolean

true if this connection is now secure, false if it is not secure

params
IHttpParams

new parameters for this connection

Attributes

Exceptions

Remarks

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