Neopallium / lua-zmq

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

Pass socket object as first arg to poller's callbacks. #44

Closed moteus closed 11 years ago

moteus commented 11 years ago

Now poller pass only events, but i think this is more convenient pass socket and events.

function doWork(skt)
...
end
...
poller:add(skt, zmq.POLLIN, doWork);