make-simple-server opens sockets

Create issue
Issue #135 resolved
Takashi Kato repo owner created an issue

It is inconvenient that make-simple-server opens sockets after it's created.

Example:

(import (net server) (sagittarius socket))

(define server (make-simple-server "12345" (lambda (s sock) #t)))

(make-server-socket "12345")

This prevents defining toplevel server on the script which can be used to stop the server.

Comments (1)

  1. Log in to comment