[Openmcl-devel] EPoll Bindings for CCL

Volkan YAZICI yazicivo at ttmail.com
Sun Sep 13 17:50:04 UTC 2009


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))
  CL-USER> (usocket:with-socket-listener (server-socket "" 4040 :reuse-address t)
             (alexandria:when-let (client-socket (usocket:socket-accept server-socket))
                      (epoll:with-epfd (epfd)
                         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?


[1] http://github.com/vy/epoll
[2] http://cliki.net/epoll

More information about the Openmcl-devel mailing list