[cffi-devel] EPoll Bindings for CCL
Hi, I've released the first draft of my EPoll package[1][2]. While everything works for SBCL, `EPFD-WAIT' returns weird file descriptors (e.g. -65536) on CCL. Consider example below. CL-USER> (loop for pkg in '(cffi alexandria usocket epoll) do (asdf:oos 'asdf:load-op pkg)) ... NIL CL-USER> (usocket:with-socket-listener (server-socket "0.0.0.0" 4040 :reuse-address t) (alexandria:when-let (client-socket (usocket:socket-accept server-socket)) (unwind-protect (progn (epoll:with-epfd (epfd) (epoll:epfd-control epfd :add (epoll:socket-fd (usocket:socket client-socket)) :in :pri :err) (epoll:epfd-wait epfd 5000))) (usocket:socket-close client-socket)))) ((-65536 :IN)) Any ideas about what might I be missing? Regards. [1] http://github.com/vy/epoll [2] http://cliki.net/epoll
On Sun, Sep 13, 2009 at 6:50 PM, Volkan YAZICI <yazicivo@ttmail.com> wrote:
Any ideas about what might I be missing?
It's not immediately clear what's going on without a runnable example. Have you tried running/reading iolib[1]; it supports epoll and might give you some insights. [1] http://common-lisp.net/project/iolib/ -- Luís Oliveira http://student.dei.uc.pt/~lmoliv/
participants (2)
-
Luís Oliveira
-
Volkan YAZICI