Neopallium / lua-zmq

Lua zeromq2 binding
http://github.com/Neopallium/lua-zmq
MIT License
151 stars 36 forks source link

hi, does poll accept normal socket #33

Closed miketang84 closed 11 years ago

miketang84 commented 11 years ago

hi,

I saw "The poller object wraps zmq_poll() to allow polling of events from multiple ZMQ Sockets and/or normal sockets." in your document.

Now, I want to add a normal socket produced by socket, listen and accept, then what do I need to do to add that fd to this poller?

Thank you.

Neopallium commented 11 years ago

Sorry for the late reply, I didn't notice that e-mail notices where disabled. Most likely got disabled when github changed how notices are handled (watched vs. starred).

You can pass a fd (as a number) to the poller:add() method.