The actual port the server is listening on. This is useful if you bound the server specifying 0 as port number signifying an ephemeral port
Close the server. This will close any currently open connections. The close may not complete until after this method has returned.
@return the handler which will handle all connections managed by this server.
Start listening on the port and host as configured in the {@link hunt.net.NetServerOptions} used when creating the server. <p> The server may not be listening until some time after the call to listen has returned.
Start listening on the specified port and host, ignoring port and host configured in the {@link hunt.net.NetServerOptions} used when creating the server. <p> Port {@code 0} can be specified meaning "choose an random port". <p> Host {@code 0.0.0.0} can be specified meaning "listen on all available interfaces". <p> The server may not be listening until some time after the call to listen has returned.
Start listening on the specified port and host "0.0.0.0", ignoring port and host configured in the {@link hunt.net.NetServerOptions} used when creating the server. <p> Port {@code 0} can be specified meaning "choose an random port". <p> The server may not be listening until some time after the call to listen has returned.
Sets the handler which will handle all connections managed by this server.
Represents a TCP server
@author <a href="http://tfox.org">Tim Fox</a>