Language

DefaultClientConnection.Update(Socket, HttpHost, Boolean, IHttpParams) Method

Definition

Updates an open connection's target and security flag, and optionally binds a replacement socket. Does not close the previous socket; the caller must close it if no longer needed.

[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")]
public virtual 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")>]
abstract member Update : Java.Net.Socket * Org.Apache.Http.HttpHost * bool * Org.Apache.Http.Params.IHttpParams -> unit
override this.Update : Java.Net.Socket * Org.Apache.Http.HttpHost * bool * Org.Apache.Http.Params.IHttpParams -> unit

Parameters

sock
Socket

A replacement socket, or null to retain the current socket and its dependent buffers.

target
HttpHost

The non-null new target host.

secure
Boolean

true if the updated connection is to be considered secure; otherwise, false.

params
IHttpParams

The non-null parameters used if a replacement socket is bound.

Implements

Attributes

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