From 373fcdac84fd1a8a8d513d1dcc00539821c1c803 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Sun, 5 Jan 2014 16:27:00 +0100 Subject: reverse connection setup for zmq --- aac-enc-dabplus-zmq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'aac-enc-dabplus-zmq.c') diff --git a/aac-enc-dabplus-zmq.c b/aac-enc-dabplus-zmq.c index 8d18a23..0994d04 100644 --- a/aac-enc-dabplus-zmq.c +++ b/aac-enc-dabplus-zmq.c @@ -211,8 +211,8 @@ int main(int argc, char *argv[]) { fprintf(stderr, "Error occurred during zmq_socket: %s\n", zmq_strerror(errno)); return 2; } - if (zmq_bind(zmq_sock, outuri) != 0) { - fprintf(stderr, "Error occurred during zmq_bind: %s\n", zmq_strerror(errno)); + if (zmq_connect(zmq_sock, outuri) != 0) { + fprintf(stderr, "Error occurred during zmq_connect: %s\n", zmq_strerror(errno)); return 2; } } else { -- cgit v1.2.3