aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2014-01-05 16:19:36 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2014-01-05 16:19:36 +0100
commitb4484f4bf653b2a52afd5d0c70daecc1ad498cd2 (patch)
tree93dda4101a52c4a1a70ad1bac52d7ac161603431 /src
parente5ff24157af141fce8e5487d53ceb4ca597c10f6 (diff)
downloaddabmux-b4484f4bf653b2a52afd5d0c70daecc1ad498cd2.tar.gz
dabmux-b4484f4bf653b2a52afd5d0c70daecc1ad498cd2.tar.bz2
dabmux-b4484f4bf653b2a52afd5d0c70daecc1ad498cd2.zip
invert ZMQ input direction (encoders connect to mux)
Diffstat (limited to 'src')
-rw-r--r--src/dabInputZmq.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dabInputZmq.cpp b/src/dabInputZmq.cpp
index 13b812e..dd25806 100644
--- a/src/dabInputZmq.cpp
+++ b/src/dabInputZmq.cpp
@@ -97,7 +97,7 @@ int dabInputZmqOpen(void* args, const char* inputUri)
dabInputZmqData* input = (dabInputZmqData*)args;
std::string uri = "tcp://" + std::string(inputUri);
- int connect_error = zmq_connect(input->zmq_sock, uri.c_str());
+ int connect_error = zmq_bind(input->zmq_sock, uri.c_str());
if (connect_error < 0) {
etiLog.print(TcpLog::ERR, "Failed to connect socket to uri '%s': %s\n", uri.c_str(), zmq_strerror(errno));