[zeromq-dev] Event monitor on 3.2.x version

Peter Kleiweg pkleiweg at xs4all.nl
Wed Oct 30 23:33:24 CET 2013

Alexey Melnichuk schreef op de 30e dag van de wijnmaand van het jaar 2013:

> I try implement recv_event method for my Lua binding [1].
> For zmq 4.0 all warks fine but for zmq 3.2.x I can not get address.
> My code: https://github.com/moteus/lzmq/blob/5bf0d2eb0b/src/zsocket.c#L162
> The problem is that i get some garbage at 
> address `event.data.accepted.addr` [2]

I think you should wait to call zmq_msg_close(&msg) until after 
lua_pushstring(L, event.data.connected.addr), because the 
address actually points to something in msg.

Peter Kleiweg

More information about the zeromq-dev mailing list