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

Marten Feldtmann itlists at schrievkrom.de
Sat Nov 10 13:15:05 CET 2012


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



More information about the zeromq-dev mailing list