[zeromq-dev] help Handling Multiple Sockets

Kira dophinehk at yahoo.com.hk
Tue Jul 17 12:36:09 CEST 2012


Hi,

I try to write a program to handle multiple sockets.

1.
typedef std::vector<zmq::pollitem_t> tPollItemList;
tPollItemList m_oPollItemList;

2. add one entry to m_oPollItemList.
3. call  zmq_poll (&m_oPollItemList[0], m_oPollItemList.size(), -1);

I found revents is always zero i.e.
tItr->revents & ZMQ_POLLIN is always false.

Does anyone know the cause?

Regards,
Kira
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20120717/5e688f5a/attachment.htm>


More information about the zeromq-dev mailing list