Yes, a socket can be bound to several locations, this is just an example of that (the client connects on the tcp endpoint).
-Pieter On Sat, Nov 10, 2012 at 9:15 PM, Marten Feldtmann <[email protected]> wrote: > In the weather server source code (found in the guide) I read the > following code: > > void *publisher = zmq_socket (context, ZMQ_PUB); > int rc = zmq_bind (publisher, "tcp://*:5556"); > assert (rc == 0); > rc = zmq_bind (publisher, "ipc://weather.ipc"); > assert (rc == 0); > ... > > Why is the publisher bound to two locations ? > What is the idea behind this ? > Can a socket be bound to several locations ? > > > > > Marten > _______________________________________________ > zeromq-dev mailing list > [email protected] > http://lists.zeromq.org/mailman/listinfo/zeromq-dev _______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
