g-type">cfunction</span> <span class="binding-type"><a href="https://github.com/janet-lang/janet/blob/c28df14/src/core/net.c#L574">source</a></span> <pre class="binding-text">(net/listen host port &amp;opt type)

Creates a server. Returns a new stream that is neither readable nor writeable. Use net/accept or net/accept-loop be to handle connections and start the server. The type parameter specifies the type of network connection, either a :stream (usually tcp), or :datagram (usually udp). If not specified, 