[zeromq-dev] Weather update server ... do not understand this source code ...

Pieter Hintjens ph at imatix.com
Sat Nov 10 15:06:29 CET 2012


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
<itlists at schrievkrom.de> 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
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev



More information about the zeromq-dev mailing list