+;;; Imports
+
+;; Chicken 5
(import (chicken tcp)
(chicken port)
(chicken io)
(chicken process-context)
srfi-1 srfi-13 matchable)
+;; Chicken 4
+;; (use srfi-1 srfi-13 tcp posix matchable)
+
;;; Global constants
(define gopher-index-file-name "index")
-(define burrow-version "1.0.0")
+(define burrower-version "1.0.0")
-(define burrow-footer
+(define burrower-footer
(conc "\n"
"--------------------------------------------------\n"
- "Served by Burrow Gopher Server v" burrow-version "\n"
+ "This gopher hole was dug using Burrower v" burrower-version "\n"
"Powered by Chicken Scheme!"))
(serve-info-records (read-line)))
(loop (peek-char)))))))
(if (config-display-footer config)
- (serve-info-records burrow-footer)))
+ (serve-info-records burrower-footer)))
(error "Index file not found."))))
(define (serve-text-file selector config)