Javax.Net.Ssl.SSLSocketFactory.CreateSocket Method
Creates an SSLSocket over the specified socket that is connected to the specified host at the specified port.

Syntax

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

Parameters

s
the socket.
host
the host.
port
the port number.
autoClose
true if socket s should be closed when the created socket is closed, false if the socket s should be left open.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.IO.IOExceptionif creating the socket fails.
Java.Net.UnknownHostExceptionif the host is unknown.

Remarks

Creates an SSLSocket over the specified socket that is connected to the specified host at the specified port.

[Android Documentation]

Requirements

Namespace: Javax.Net.Ssl
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1