[zeromq-dev] zeromq epgm basic testing

Greg Ward greg at gerg.ca
Wed Feb 26 15:35:53 CET 2014

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://;");
>         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)


More information about the zeromq-dev mailing list