s="mendoza-codeblock"><code data-language="janet"><span class="mdzsyn-comment"># Create a server on localhost and listen on port 8000.</span>
(<span class="mdzsyn-coresym">def</span> <span class="mdzsyn-symbol">my-server</span> (<span class="mdzsyn-coresym">net/listen</span> <span class="mdzsyn-string">"127.0.0.1"</span> <span class="mdzsyn-string">"8000"</span>))

(<span class="mdzsyn-coresym">defn</span> <span class="mdzsyn-symbol">handler</span> 
  <span class="mdzsyn-string">"Handle a connection in a se