Closes the server socket.
Returns true if the server socket is currently accepting connections, false otherwise.
True if the server socket is currently accepting connections, false otherwise.
Instructs the server socket to start accepting incoming connections.
Defines whether the server socket should keep listening after an incoming connection was received. The default is
true. If you set this parameter to
false, make sure that you implement an event handler for error events and call the startAccept function as appropriate, because the server socket will stop listening even if the incoming connection fails subsequently.
Instructs the server socket to stop accepting incoming connections.
Fired when the server socket receives an incoming connection.
The socket object tied to the connection.
Fired when a socket operation fails.