SSLSocketFactory.CreateSocket Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
CreateSocket() |
Creates a new, unconnected socket. |
CreateSocket(Socket, String, Int32, Boolean) |
Returns a socket connected to the given host that is layered over an existing socket. |
CreateSocket()
Creates a new, unconnected socket.
[Android.Runtime.Register("createSocket", "()Ljava/net/Socket;", "GetCreateSocketHandler")]
public virtual Java.Net.Socket? CreateSocket ();
[<Android.Runtime.Register("createSocket", "()Ljava/net/Socket;", "GetCreateSocketHandler")>]
abstract member CreateSocket : unit -> Java.Net.Socket
override this.CreateSocket : unit -> Java.Net.Socket
Returns
Implements
- Attributes
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
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);
[<Android.Runtime.Register("createSocket", "(Ljava/net/Socket;Ljava/lang/String;IZ)Ljava/net/Socket;", "GetCreateSocket_Ljava_net_Socket_Ljava_lang_String_IZHandler")>]
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
the existing socket
- host
- String
the host name/IP
- port
- Int32
the port on the host
- autoClose
- Boolean
a flag for closing the underling socket when the created socket is closed
Returns
Implements
- Attributes
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.