summaryrefslogtreecommitdiff
path: root/scheme/racket/geiser
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2012-09-08 19:24:10 +0200
committerJose Antonio Ortega Ruiz <jao@gnu.org>2012-09-08 19:24:10 +0200
commit977335378247e8c7df0594fc300cb82c4ce6bbc7 (patch)
tree35c9292bdf372cc596f3e7de9331a667a526a212 /scheme/racket/geiser
parent97f2fb5b47aaeec00cdcd1c6082e95c907eb3f62 (diff)
downloadgeiser-chez-977335378247e8c7df0594fc300cb82c4ce6bbc7.tar.gz
geiser-chez-977335378247e8c7df0594fc300cb82c4ce6bbc7.tar.bz2
Racket: new option to specify network interface for REPL server
In geiser-racket.sh, there's the new option -n, which uses a new hostname argument accepted by geiser/user's start-geiser function.
Diffstat (limited to 'scheme/racket/geiser')
-rw-r--r--scheme/racket/geiser/user.rkt8
1 files changed, 4 insertions, 4 deletions
diff --git a/scheme/racket/geiser/user.rkt b/scheme/racket/geiser/user.rkt
index e9540b0..f383a46 100644
--- a/scheme/racket/geiser/user.rkt
+++ b/scheme/racket/geiser/user.rkt
@@ -110,18 +110,18 @@
(define server-channel (make-channel))
-(define (run-geiser-server port enforce-module-constants)
+(define (run-geiser-server port enforce-module-constants (hostname #f))
(run-server port
(lambda (in out)
(run-geiser-repl in out enforce-module-constants))
#f
void
(lambda (p _ __)
- (let ([lsner (tcp-listen p)])
+ (let ([lsner (tcp-listen p 4 #f hostname)])
(let-values ([(_ p __ ___) (tcp-addresses lsner #t)])
(channel-put server-channel p)
lsner)))))
-(define (start-geiser (port 0) (enforce-module-constants #f))
- (thread (lambda () (run-geiser-server port enforce-module-constants)))
+(define (start-geiser (port 0) (hostname #f) (enforce-module-constants #f))
+ (thread (lambda () (run-geiser-server port enforce-module-constants hostname)))
(channel-get server-channel))