Jazyk

DefaultClientConnectionOperator.OpenConnection Method

Definition

Opens a connection using the target's registered socket factory. Tries the target's resolved addresses in order after socket connection failures or connection timeouts, and adds a socket layer when required by the scheme.

[Android.Runtime.Register("openConnection", "(Lorg/apache/http/conn/OperatedClientConnection;Lorg/apache/http/HttpHost;Ljava/net/InetAddress;Lorg/apache/http/protocol/HttpContext;Lorg/apache/http/params/HttpParams;)V", "GetOpenConnection_Lorg_apache_http_conn_OperatedClientConnection_Lorg_apache_http_HttpHost_Ljava_net_InetAddress_Lorg_apache_http_protocol_HttpContext_Lorg_apache_http_params_HttpParams_Handler")]
public virtual void OpenConnection(Org.Apache.Http.Conn.IOperatedClientConnection? conn, Org.Apache.Http.HttpHost? target, Java.Net.InetAddress? local, Org.Apache.Http.Protocol.IHttpContext? context, Org.Apache.Http.Params.IHttpParams? params);
[<Android.Runtime.Register("openConnection", "(Lorg/apache/http/conn/OperatedClientConnection;Lorg/apache/http/HttpHost;Ljava/net/InetAddress;Lorg/apache/http/protocol/HttpContext;Lorg/apache/http/params/HttpParams;)V", "GetOpenConnection_Lorg_apache_http_conn_OperatedClientConnection_Lorg_apache_http_HttpHost_Ljava_net_InetAddress_Lorg_apache_http_protocol_HttpContext_Lorg_apache_http_params_HttpParams_Handler")>]
abstract member OpenConnection : Org.Apache.Http.Conn.IOperatedClientConnection * Org.Apache.Http.HttpHost * Java.Net.InetAddress * Org.Apache.Http.Protocol.IHttpContext * Org.Apache.Http.Params.IHttpParams -> unit
override this.OpenConnection : Org.Apache.Http.Conn.IOperatedClientConnection * Org.Apache.Http.HttpHost * Java.Net.InetAddress * Org.Apache.Http.Protocol.IHttpContext * Org.Apache.Http.Params.IHttpParams -> unit

Parameters

conn
IOperatedClientConnection

The non-null connection, which must not already be open.

target
HttpHost

The non-null host to connect to, including its scheme and port.

local
InetAddress

The local address to bind, or null to let the socket select it.

context
IHttpContext

The context for connection setup.

params
IHttpParams

The non-null socket and connection parameters.

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