listen


Description:

public bool listen () throws Error

Marks the socket as a server socket, i.

e. a socket that is used to accept incoming requests using accept.

Before calling this the socket must be bound to a local address using bind.

To set the maximum amount of outstanding clients, use set_listen_backlog .

Parameters:

this

a Socket.

Returns:

true on success, false on error.