27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
;; (declare (uses daemon))
(declare (uses portlogger))
(declare (uses rmt))
(declare (uses dbfile))
(declare (uses commonmod))
(declare (uses mtargs))
(require-extension (srfi 18) extras tcp s11n)
(use srfi-1 posix regex regex-case srfi-69 hostinfo md5 message-digest posix-extras)
(use spiffy uri-common intarweb http-client spiffy-request-vars intarweb spiffy-directory-listing)
(import (prefix mtargs args:)
debugprint)
;; Configurations for server
(tcp-buffer-size 2048)
(max-connections 2048)
(include "common_records.scm")
|
|
|
|
>
>
|
>
>
>
>
|
|
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
;; (declare (uses daemon))
(declare (uses portlogger))
(declare (uses rmt))
(declare (uses dbfile))
(declare (uses commonmod))
(declare (uses mtargs))
(module http-transport
*
(import srfi-1 posix regex regex-case srfi-69 hostinfo md5
message-digest posix-extras spiffy uri-common intarweb http-client
spiffy-request-vars intarweb spiffy-directory-listing
(srfi 18) extras tcp s11n)
(import scheme
chicken
(prefix mtargs args:)
debugprint)
;; Configurations for server
(tcp-buffer-size 2048)
(max-connections 2048)
(include "common_records.scm")
|
695
696
697
698
699
700
701
|
(conc "<table>"
(string-intersperse
(map (lambda (stat)
(conc "<tr><td>" (car stat) "</td><td>" (cadr stat) "</td></tr>"))
stats)
" ")
"</table>")))
|
>
|
701
702
703
704
705
706
707
708
|
(conc "<table>"
(string-intersperse
(map (lambda (stat)
(conc "<tr><td>" (car stat) "</td><td>" (cadr stat) "</td></tr>"))
stats)
" ")
"</table>")))
)
|