]> git.jsancho.org Git - gacela.git/blobdiff - src/gacela_server.scm
(no commit message)
[gacela.git] / src / gacela_server.scm
index 5278cbaa253e7149419d12f5552aae1caff78106..caaf6b595e526c654ccf1af979a52e6af90b1def 100644 (file)
                    (cond ((eof-object? exp)
                           (close rec-channel))
                          (else
-                          (format #t "Server1: ~a~%" exp)
-                          (format #t "Server2: ~a~%" (primitive-eval exp))
-                          (format send-channel "~a" (primitive-eval exp))
-                          (force-output send-channel)))))
+                          (write (format #f "~a" (eval-string exp)) send-channel)))))
                (lambda (key . args)
-                 (format #t "ERROR")
                  (let ((fmt (string-concatenate (list (cadr args) "~%")))
                        (params (caddr args)))
-                   (if params
-                       (apply format (cons send-channel (cons fmt params)))
-                       (format send-channel fmt))))))))
+                   (write
+                    (if params
+                        (apply format (cons #f (cons fmt params)))
+                        (format #f fmt))
+                    send-channel))))
+        (force-output send-channel))))