Org.Apache.Http.Conn.MultihomePlainSocketFactory.ConnectSocket Method
Attempts to connects the socket to any of the Java.Net.InetAddresses the given host name resolves to.

Syntax

[Android.Runtime.Register("connectSocket", "(Ljava/net/Socket;Ljava/lang/String;ILjava/net/InetAddress;ILorg/apache/http/params/HttpParams;)Ljava/net/Socket;", "")]
public Java.Net.Socket ConnectSocket (Java.Net.Socket sock, string host, int port, Java.Net.InetAddress localAddress, int localPort, Org.Apache.Http.Params.IHttpParams params)

Parameters

sock
socket to connect to any of the given addresses
host
Host name to connect to
port
the port to connect to
localAddress
local address
localPort
local port
params
HTTP parameters

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.IO.IOExceptionif an error occurs during the connection
Java.Net.SocketTimeoutExceptionif timeout expires before connecting

Remarks

Attempts to connects the socket to any of the Java.Net.InetAddresses the given host name resolves to. If connection to all addresses fail, the last I/O exception is propagated to the caller.

[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