Javax.Net.ServerSocketFactory.CreateServerSocket Method
Creates a new server socket which is bound to the given port and configures its maximum of queued connections.

Syntax

[Android.Runtime.Register("createServerSocket", "(II)Ljava/net/ServerSocket;", "GetCreateServerSocket_IIHandler")]
public abstract Java.Net.ServerSocket CreateServerSocket (int port, int backlog)

Parameters

port
the port on which the created socket has to listen.
backlog
the maximum number of unaccepted connections. Passing 0 or a negative value yields the default backlog of 50.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.IO.IOExceptionif an error occurs while creating a new server socket.

Remarks

Creates a new server socket which is bound to the given port and configures its maximum of queued connections.

[Android Documentation]

Requirements

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