NetServer.listen

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.

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

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

Meta