[zeromq-dev] "Context was terminated" error
Martin Sustrik
sustrik at 250bpm.com
Wed Mar 23 21:14:42 CET 2011
Hi John,
> zmq::pollitem_t primary[] = {
> { cloudbe, 0, ZMQ_POLLIN, 0 },
> { statefe, 0, ZMQ_POLLIN, 0 },
> { monitor, 0, ZMQ_POLLIN, 0 }
What goes into pollset is a socket handle rather than pointer to the
socket object. The handle can be retreived by casting the socket object
itself to void*, this way:
zmq::pollitem_t primary[] = {
{ *cloudbe, 0, ZMQ_POLLIN, 0 },
{ *statefe, 0, ZMQ_POLLIN, 0 },
{ *monitor, 0, ZMQ_POLLIN, 0 }
Martin
More information about the zeromq-dev
mailing list