Commit a770bbbc authored by Pierre Aubert's avatar Pierre Aubert
Browse files

Doc of zmq is really badgit status git status

parent 3b7afb35
Pipeline #100932 failed with stages
in 2 minutes and 37 seconds
......@@ -22,15 +22,16 @@ zmq::socket_t* pzmq_createClientSocket(zmq::context_t & context, int type, const
socket->connect(socketAddressData.str());
if(type == ZMQ_SUB){
// #if (CPPZMQ_VERSION_MAJOR*100 + CPPZMQ_VERSION_MINOR*10 + CPPZMQ_VERSION_PATCH) >= 470
// socket->setsockopt(zmq::sockopt::linger, 0);
// socket->setsockopt(zmq::sockopt::subscribe, "", 0);
// socket->setsockopt(zmq::sockopt::conflate, 1);
// #else
#if (CPPZMQ_VERSION_MAJOR*100 + CPPZMQ_VERSION_MINOR*10 + CPPZMQ_VERSION_PATCH) > 522
socket->set(zmq::sockopt::linger, 0);
socket->set(zmq::sockopt::subscribe, "", 0);
socket->set(zmq::sockopt::conflate, 1);
#else
socket->setsockopt(ZMQ_LINGER, 0l);
socket->setsockopt(ZMQ_LINGER, 0l);
socket->setsockopt(ZMQ_SUBSCRIBE, "", 0l);
socket->setsockopt(ZMQ_CONFLATE, 1l);
// #endif
#endif
}
return socket;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment