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

Alexey Melnichuk mimir at newmail.ru
Wed Oct 30 15:09:45 CET 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]
In doc I found:
  printf ("accepted socket descriptor %d\n", event.data.accepted.fd);
  printf ("accepted socket address %s\n", event.data.accepted.addr);

The second question. Why in zmq_z85_XXX `src` is not const pointer?

[1] https://github.com/moteus/lzmq
[2] https://travis-ci.org/moteus/lzmq/jobs/13262424#L873

More information about the zeromq-dev mailing list