Javax.Net.ServerSocketFactory.CreateServerSocket Method
Creates a new server socket which is bound to the given port with a maximum backlog of 50 unaccepted connections.

Syntax

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

Parameters

port
the port on which the created socket has to listen.

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 with a maximum backlog of 50 unaccepted 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