From: Philippe B. <ho...@fr...> - 2006-06-21 20:53:45
|
Philippe Brochard a écrit : > Hi all, > > here is a patch to clocc/net.lisp to support sbcl/sb-bsd-sockets. > > open-socket-server, socket-accept, open-socket, > socket-server-close and socket-server-host/port seems to work for > me. But I don't know how to write socket-host/port. > I answer to myself, here is a new patch to have the wait option in socket-accept. And socket-accept return two values: the stream and the real socket. So socket-host/port works with this second value. I use it like this (it's a little bit uggly): (multiple-value-bind (sock #+(and sbcl sb-bsd-sockets) real-sock) (port:socket-accept sock-server :wait 0.5) ... (port:socket-host/port #-(and sbcl sb-bsd-sockets) sock #+(and sbcl sb-bsd-sockets) real-sock) ...) Regards, Philippe -- Philippe Brochard <ho...@fr...> http://hocwp.free.fr -=-= http://www.gnu.org/home.fr.html =-=- |