SSLSocketFactory.CreateSocket SSLSocketFactory.CreateSocket Method

Definition

Overloads

CreateSocket() CreateSocket()

Creates a new, unconnected socket.

CreateSocket(Socket, String, Int32, Boolean) CreateSocket(Socket, String, Int32, Boolean)

Returns a socket connected to the given host that is layered over an existing socket.

CreateSocket() CreateSocket()

Creates a new, unconnected socket.

[Android.Runtime.Register("createSocket", "()Ljava/net/Socket;", "GetCreateSocketHandler")]
public virtual Java.Net.Socket CreateSocket ();
abstract member CreateSocket : unit -> Java.Net.Socket
override this.CreateSocket : unit -> Java.Net.Socket

Returns

Implements

Exceptions

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

CreateSocket(Socket, String, Int32, Boolean) CreateSocket(Socket, String, Int32, Boolean)

Returns a socket connected to the given host that is layered over an existing socket.

[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);
abstract member CreateSocket : Java.Net.Socket * string * int * bool -> Java.Net.Socket
override this.CreateSocket : Java.Net.Socket * string * int * bool -> Java.Net.Socket

Parameters

socket
Socket Socket

the existing socket

host
String String

the host name/IP

port
Int32 Int32

the port on the host

autoClose
Boolean Boolean

a flag for closing the underling socket when the created socket is closed

Returns

Implements

Exceptions

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to