chickadee » phricken » start-server!

start-server! #!optional (bg #f)procedure

Starts a new threaded server on (port) using the tcp-server extension. Upon connection, control is passed to gopher#accept, which will then dispatch back to our own handle-request.

If optional BG is #t, the server will itself be started in a new thread, allowing you to debug at the REPL.

The tcp6 extension is used to permit IPv6 support, so tcp6 parameters such as tcp-bind-ipv6-only and tcp-buffer-size are applicable.