[racket] (no subject)

From: deepak verma (deepakverma14021994 at gmail.com)
Date: Tue Apr 9 11:54:00 EDT 2013

what does  the following part in the code do.

(module+ main
  (require racket/cmdline)
  ;; By default, use 9999 as the port.  This can be overridden
  ;; at the command line.
  (define current-port (make-parameter 9999))
  (void (command-line
         #:once-each [("-p" "--port") p "Port"
                      (current-port (string->number p))]))
  (start-server #:port (current-port)))
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20130409/bb30154d/attachment.html>

Posted on the users mailing list.