Sdílet prostřednictvím


ISocketFactory.CreateSocket Method

Definition

Creates a new, unconnected socket.

[Android.Runtime.Register("createSocket", "()Ljava/net/Socket;", "GetCreateSocketHandler:Org.Apache.Http.Conn.Schemes.ISocketFactoryInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Java.Net.Socket? CreateSocket ();
[<Android.Runtime.Register("createSocket", "()Ljava/net/Socket;", "GetCreateSocketHandler:Org.Apache.Http.Conn.Schemes.ISocketFactoryInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member CreateSocket : unit -> Java.Net.Socket

Returns

a new socket

Attributes

Exceptions

if an I/O error occurs while creating the socket

Remarks

Creates a new, unconnected socket. The socket should subsequently be passed to #connectSocket connectSocket.

Java documentation for org.apache.http.conn.scheme.SocketFactory.createSocket().

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