[armedbear-devel] sockets in CLISP

Santiago Carbonell carbonell.santiago at gmail.com
Fri May 18 09:38:57 UTC 2012


Hi,

I'm trying to send some strings using the format function in LISP to a
sockets but always I obtain NIL

I'm using this function:

(defun sockets_fun()
(WITH-OPEN-STREAM (socket (SOCKET:SOCKET-CONNECT 49729 "localhost"))
(let ((*standard-output* socket))
(format socket "The color is ~A" "red")
(force-output socket)
(finish-output nil)
)))

But always I obtain NIL in the socket

Instead of that function I've tried to use this another function:

(defun geetings()
(print "hi"))

and works fine, appears hi in the socket

Why there are problems with sockets with the format function?

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/armedbear-devel/attachments/20120518/9504baaf/attachment.html>


More information about the armedbear-devel mailing list