Org.Apache.Http.Conn.IClientConnectionOperator.OpenConnection Method
Opens a connection to the given target host.

Syntax

[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:Org.Apache.Http.Conn.IClientConnectionOperatorInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void OpenConnection (IOperatedClientConnection conn, Org.Apache.Http.HttpHost target, Java.Net.InetAddress local, Org.Apache.Http.Protocol.IHttpContext context, Org.Apache.Http.Params.IHttpParams params)

Parameters

conn
the connection to open
target
the target host to connect to
local
the local address to route from, or null for the default
context
the context for the connection
params
the parameters for the connection

Exceptions

TypeReason
Java.IO.IOExceptionin case of a problem

Remarks

Opens a connection to the given target host.

[Android Documentation]

Requirements

Namespace: Org.Apache.Http.Conn
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1