Server.listenAll

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.types.ServerListenOptions.Ipv4Only, soup.types.ServerListenOptions.Ipv6Only, 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 soup.server.Server.getUris to find out what port it ended up choosing.

See soup.server.Server.listen for more details.

class Server
bool
listenAll

Parameters

port uint

the port to listen on, or 0

options soup.types.ServerListenOptions

listening options for this server

Return Value

Type: bool

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