[ Version ( since = "2.48" ) ]
public bool listen_local (uint port, ServerListenOptions options) throws Error
Attempts to set up this 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 port
is specified, this will listen on that port. If it is 0, this 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.
| this |
a Server |
| port |
the port to listen on, or 0 |
| options |
listening options for this server |
|
true on success, false if |