listen

open fun listen(address: <Error class: unknown class>, options: ServerListenOptions): <Error class: unknown class><Boolean>

Attempts to set up @server to listen for connections on @address.

If @options includes %SOUP_SERVER_LISTEN_HTTPS, and @server has been configured for TLS, then @server will listen for https connections on this port. Otherwise it will listen for plain http.

You may call this method (along with the other "listen" methods) any number of times on a server, if you want to listen on multiple ports, or set up both http and https service.

After calling this method, @server will begin accepting and processing connections as soon as the appropriate struct@GLib.MainContext is run.

Note that this API does not make use of dual IPv4/IPv6 sockets; if

Return

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

Parameters

address

the address of the interface to listen on

options

listening options for this server