listenLocal

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

Attempts to set up @server to listen for connections on "localhost".

That is, 127.0.0.1 and/or ::1, depending on whether @options includes %SOUP_SERVER_LISTEN_IPV4_ONLY, %SOUP_SERVER_LISTEN_IPV6_ONLY, or neither). If

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