Re: [zeromq-dev] zmq_poll returns -1 ( Context has been shut down) when polling 2 sockets

2023-07-04 Thread Arnaud Loonstra
I'm not sure but skimming your code you are mixing czmq sockets and zmq poll method. If you want to use the zmp_poll method you can use zsock_resolve on the czmq sockets // Probe the supplied reference. If it looks like a zsock_t instance, return // the underlying libzmq socket handle;

[zeromq-dev] zmq_poll returns -1 ( Context has been shut down) when polling 2 sockets

2023-07-04 Thread Chandrasekhar Nunna
hi all, i am using zactor and in the call back i receive a pipe socket. i create a router socket and polling this sockets for messages. it is not working and giving -1 result as return value of zmq_poll; what could be the problem? void echo_actor (zsock_t *pipe, void *args) { // need to