net/listen
core-api
cfunction
src/core/net.c on line 820, column 1
(net/listen host port &opt cntype no-reuse)
Creates a server. Returns a new stream that is neither readable nor
writeable. Use `net/accept` or `net/accept-loop` to handle
connections and start the server. The `cntype` parameter specifies
the connection type, either `:stream` (usually TCP), or `:datagram`
(usually UDP). If not specified, the default is `:stream`. The
`host` and `port` arguments are the same as in `net/address`. The
last boolean parameter `no-reuse` disables the use of
`SO_REUSEADDR` and `SO_REUSEPORT` when creating a server on some
operating systems.