NetServer.listen

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.

@return a reference to this, so the API can be used fluently

  1. void listen()
  2. void listen(string host, int port)
  3. void listen(int port)
    interface NetServer
    void
    listen
    (
    int port
    )

Meta