[zeromq-dev] C++, socket_t, and poll

Martin Sustrik sustrik at 250bpm.com
Wed Oct 27 08:55:17 CEST 2010


David,

> When zmq::poll tells you that there is activity on a socket, how can you
> get a socket_t corresponding to the appropriate item?

It's the one you've initialised the pollitem from.

> It seems that there is no conversion between item.socket (which is a
> void*) and socket_t.

There's a (void*) cast operator overloaded on socket_t.

Martin



More information about the zeromq-dev mailing list