From: fred voisin <fred@fr...> - 2006-04-11 23:59:37
i've patched (at first, the one from fahree) the contrib/sb-bsd-sockets
from cvs and compiled succesfully (just x86 for now).
I'm starting to test with writing a sendudp function but encoutered the
following error :
READER-ERROR at 242 (line 6, column 36) on
The symbol "DATA-TO-IOBUFFER" is not external in the SB-BSD-SOCKETS package.
[Condition of type SB-KERNEL:READER-PACKAGE-ERROR]
this is the begenning of my function, as simple (naive ?) as possible,
to be the closer to openmcl's one (working fine).
(defun sendudp (ip port string)
(let ((s (make-instance 'sb-bsd-sockets:inet-socket
:type :datagram :protocol :udp))
(buffer (make-array (list (length string)) :element-type
(sb-bsd-sockets:data-to-iobuffer string buffer)))
;(sb-bsd-sockets:socket-bind s (sb-bsd-sockets:make-inet-address ip)
;(sb-bsd-sockets:socket-send s buffer nil)))
where ip is a string in form "127.0.0.1", port an integer and string a
then, after data-to-iobuffer, i'm not sure i wrote enough.
thank you for your help,