the default is :stream. The host and port arguments are the same as in net/address.</pre><a href="https://janetdocs.org/net/listen">Community Examples</a></div><hr><div class="binding"><span id="net/localname" class="binding-sym">net/localname</span> <span class="binding-type">cfunction</span> <span class="binding-type"><a href="https://github.com/janet-lang/janet/blob/c28df14/src/core/net.c#L699">source</a></span> <pre class="binding-text">(net/localname stream)

Gets the local address and port in a tuple 