Org.Apache.Http.Conn.Schemes.PlainSocketFactory.ConnectSocket Method
Connects a socket to the given host.

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
the socket to connect, as obtained from PlainSocketFactory.CreateSocket. null indicates that a new socket should be created and connected.
host
the host to connect to
port
the port to connect to on the host
localAddress
the local address to bind the socket to, or null for any
localPort
the port on the local machine, 0 or a negative number for any
params
additional Org.Apache.Http.Params.IHttpParams for connecting

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.IO.IOException

Remarks

Connects a socket to the given host.

[Android Documentation]

Requirements

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