Share via


SSLServerSocket Constructors

Definition

Overloads

SSLServerSocket()

Used only by subclasses.

SSLServerSocket(Int32)

Used only by subclasses.

SSLServerSocket(Int32, Int32)

Used only by subclasses.

SSLServerSocket(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

SSLServerSocket(Int32, Int32, InetAddress)

Used only by subclasses.

SSLServerSocket()

Used only by subclasses.

[Android.Runtime.Register(".ctor", "()V", "")]
protected SSLServerSocket ();
Attributes

Exceptions

if creating the socket fails.

Remarks

Used only by subclasses.

Create an unbound TCP server socket using the default authentication context.

Java documentation for javax.net.ssl.SSLServerSocket.SSLServerSocket().

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

SSLServerSocket(Int32)

Used only by subclasses.

[Android.Runtime.Register(".ctor", "(I)V", "")]
protected SSLServerSocket (int port);
[<Android.Runtime.Register(".ctor", "(I)V", "")>]
new Javax.Net.Ssl.SSLServerSocket : int -> Javax.Net.Ssl.SSLServerSocket

Parameters

port
Int32

the port on which to listen

Attributes

Exceptions

if creating the socket fails.

Remarks

Used only by subclasses.

Create a TCP server socket on a port, using the default authentication context. The connection backlog defaults to fifty connections queued up before the system starts to reject new connection requests.

A port number of 0 creates a socket on any free port.

If there is a security manager, its checkListen method is called with the port argument as its argument to ensure the operation is allowed. This could result in a SecurityException.

Java documentation for javax.net.ssl.SSLServerSocket.SSLServerSocket(int).

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

SSLServerSocket(Int32, Int32)

Used only by subclasses.

[Android.Runtime.Register(".ctor", "(II)V", "")]
protected SSLServerSocket (int port, int backlog);
[<Android.Runtime.Register(".ctor", "(II)V", "")>]
new Javax.Net.Ssl.SSLServerSocket : int * int -> Javax.Net.Ssl.SSLServerSocket

Parameters

port
Int32

the port on which to listen

backlog
Int32

requested maximum length of the queue of incoming connections.

Attributes

Exceptions

if creating the socket fails.

Remarks

Used only by subclasses.

Create a TCP server socket on a port, using the default authentication context and a specified backlog of connections.

A port number of 0 creates a socket on any free port.

The backlog argument is the requested maximum number of pending connections on the socket. Its exact semantics are implementation specific. In particular, an implementation may impose a maximum length or may choose to ignore the parameter altogther. The value provided should be greater than 0. If it is less than or equal to 0, then an implementation specific default will be used.

If there is a security manager, its checkListen method is called with the port argument as its argument to ensure the operation is allowed. This could result in a SecurityException.

Java documentation for javax.net.ssl.SSLServerSocket.SSLServerSocket(int, int).

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

SSLServerSocket(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

protected SSLServerSocket (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Javax.Net.Ssl.SSLServerSocket : nativeint * Android.Runtime.JniHandleOwnership -> Javax.Net.Ssl.SSLServerSocket

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

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

SSLServerSocket(Int32, Int32, InetAddress)

Used only by subclasses.

[Android.Runtime.Register(".ctor", "(IILjava/net/InetAddress;)V", "")]
protected SSLServerSocket (int port, int backlog, Java.Net.InetAddress? address);
[<Android.Runtime.Register(".ctor", "(IILjava/net/InetAddress;)V", "")>]
new Javax.Net.Ssl.SSLServerSocket : int * int * Java.Net.InetAddress -> Javax.Net.Ssl.SSLServerSocket

Parameters

port
Int32

the port on which to listen

backlog
Int32

requested maximum length of the queue of incoming connections.

address
InetAddress

the address of the network interface through which connections will be accepted

Attributes

Exceptions

if creating the socket fails.

Remarks

Used only by subclasses.

Create a TCP server socket on a port, using the default authentication context and a specified backlog of connections as well as a particular specified network interface. This constructor is used on multihomed hosts, such as those used for firewalls or as routers, to control through which interface a network service is provided.

If there is a security manager, its checkListen method is called with the port argument as its argument to ensure the operation is allowed. This could result in a SecurityException.

A port number of 0 creates a socket on any free port.

The backlog argument is the requested maximum number of pending connections on the socket. Its exact semantics are implementation specific. In particular, an implementation may impose a maximum length or may choose to ignore the parameter altogther. The value provided should be greater than 0. If it is less than or equal to 0, then an implementation specific default will be used.

If address is null, it will default accepting connections on any/all local addresses.

Java documentation for javax.net.ssl.SSLServerSocket.SSLServerSocket(int, int, java.net.InetAddress).

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