listenAll

open fun listenAll(port: <Error class: unknown class>, options: ServerListenOptions): <Error class: unknown class><Boolean>

Attempts to set up @server to listen for connections on all interfaces on the system.

That is, it listens on the addresses 0.0.0.0 and/or ::, depending on whether @options includes %SOUP_SERVER_LISTEN_IPV4_ONLY, %SOUP_SERVER_LISTEN_IPV6_ONLY, or neither.) If @port is specified, @server will listen on that port. If it is 0, @server will find an unused port to listen on. (In that case, you can use method@Server.get_uris to find out what port it ended up choosing.

See method@Server.listen for more details.

Return

true on success, false if @port could not be bound or any other error occurred (in which case @error will be set).

Parameters

port

the port to listen on, or 0

options

listening options for this server