[zeromq-dev] 回覆︰ zeromq epgm basic testing
Jim Chan
hkgdev at yahoo.com.hk
Thu Feb 27 03:03:45 CET 2014
Printing out the error, it is "Protocol not supported"
I rebuild zmq with "with-pgm" option and it is now success, thanks for everyone's help!
Greg Ward <greg at gerg.ca> 於 2014年02月26日 (週三) 10:36 PM 寫道﹕
On 26 February 2014, Jim Chan said:
> Hi there,
>
> I'm really new to zmq multicast and would like to try it out with below very simple code:
>
> void *context = zmq_ctx_new();
> void *socket = zmq_socket (context, ZMQ_PUB);
> int rc = zmq_bind(socket, "epgm://192.168.0.25;239.192.1.1:5555");
> assert(rc==0);
>
> The program aborted due to failed assertion. What is the possible cause of zmq_bind() failure?
zmq_errno() + strerror() might help:
fprintf(stderr, "zmq_bind() failed: %s", strerror(zmq_errno()));
(or something like that)
Greg
_______________________________________________
zeromq-dev mailing list
zeromq-dev at lists.zeromq.org
http://lists.zeromq.org/mailman/listinfo/zeromq-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20140227/cb27171d/attachment.htm>
More information about the zeromq-dev
mailing list