You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
here is my code snippet with zmq_poll which is correctly working and when i send message to zmq from another application then message also goes to zmq
int ZMQGateway::zmqReceiverThread() {
LOG_INFO("Starting zmq receiver thread");
zmq_pollitem_t zmqItems[] = {
{zmqReqSocket, 0, ZMQ_POLLIN, 0},
{zmqRespSocket, 0, ZMQ_POLLIN, 0},
};
while (runZmq) {
zmq_poll(zmqItems, 2, -1);
if (zmqItems[0].revents & ZMQ_POLLIN) {......
}
But here is the problem when i run using libuev (wrapper on e_poll) then the application starts also but there is not communication with the application or we can say the messages not goes to zmq server.
here is my code snippet with zmq_poll which is correctly working and when i send message to zmq from another application then message also goes to zmq
int ZMQGateway::zmqReceiverThread() {
LOG_INFO("Starting zmq receiver thread");
zmq_pollitem_t zmqItems[] = {
{zmqReqSocket, 0, ZMQ_POLLIN, 0},
{zmqRespSocket, 0, ZMQ_POLLIN, 0},
};
But here is the problem when i run using libuev (wrapper on e_poll) then the application starts also but there is not communication with the application or we can say the messages not goes to zmq server.
int evse::ZMQGateway::zmqReceiverThread() {
}
In this code i have use the one Event context and 2 watcher , 2 callback functions for the request and response socket.
The text was updated successfully, but these errors were encountered: