Org.Apache.Http.Conn.Ssl.SSLSocketFactory.CreateSocket Method
Returns a socket connected to the given host that is layered over an existing socket.

Syntax

[Android.Runtime.Register("createSocket", "(Ljava/net/Socket;Ljava/lang/String;IZ)Ljava/net/Socket;", "GetCreateSocket_Ljava_net_Socket_Ljava_lang_String_IZHandler")]
public virtual Java.Net.Socket CreateSocket (Java.Net.Socket socket, string host, int port, bool autoClose)

Parameters

socket
the existing socket
host
the host name/IP
port
the port on the host
autoClose
a flag for closing the underling socket when the created socket is closed

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.IO.IOException
Java.Net.UnknownHostException

Remarks

Returns a socket connected to the given host that is layered over an existing socket. Used primarily for creating secure sockets through proxies.

[Android Documentation]

Requirements

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