mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-11-10 17:53:53 +01:00
ZMQ connect instead of bind
This commit is contained in:
1 parent
e4e3e20013
commit
d2d02c3ebc
1 file changed
+1
-1
@@ -33,7 +33,7 @@ WriterZmqReceiver::WriterZmqReceiver(
|
||||
ipc_addr << ipc_prefix << i;
|
||||
const auto ipc = ipc_addr.str();
|
||||
|
||||
if (zmq_bind(sockets_[i], ipc.c_str()) != 0) {
|
||||
if (zmq_connect(sockets_[i], ipc.c_str()) != 0) {
|
||||
throw runtime_error(zmq_strerror(errno));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user