pgm-protocol

ZeroMQ's EPGM not working in weather PUB-SUB demo

痞子三分冷 提交于 2019-12-12 03:25:08
问题 I have compiled libzmq with openpgm with no changes under windows. Code here is taken from ZeroMQ Guide ("weather publisher" server/client). But if i change "tcp" to "epgm" it doesn't work any more (data is not received, but connection is established). void test_serv() { // Prepare our context and publisher void *context = zmq_ctx_new(); void *publisher = zmq_socket(context, ZMQ_PUB); int rc = zmq_bind(publisher, "epgm://127.0.0.1:5556"); assert(rc == 0); // Initialize random number generator