chuckremes/ffi-rzmq — pull request #61 by pawelpacana (2012-08-28 17:57:06+00:00)
Title: Poller refactoring

I've made some refactoring inside Poller to make sure it fully works with other pollables like BasicSocket, IO or SSLSocket as well. As a plus slow code path for deregisterng closed sockets is not needed. Specs have been updated.

I also removed dead code (or what seemed like) and made API changes which are breaking but IMO provide better and more consistent API:
- returning pollable instead of just `fileno` for standard sockets and IOs
- register/deregister now don't take `fd` argument
- register/deregister on `nil` pollable return `nil`

What do you think?