diff options
Diffstat (limited to 'src/client.c')
| -rw-r--r-- | src/client.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client.c b/src/client.c index ebc7b2b..f664a95 100644 --- a/src/client.c +++ b/src/client.c @@ -28,7 +28,7 @@ int main (int argc, char *argv []) void *subscriber = zmq_socket (context, ZMQ_SUB); char bindto[30]; sprintf(bindto,"tcp://%s:%d",ip,port); - int rc = zmq_connect (subscriber, bindto); + int rc = zmq_bind (subscriber, bindto); if(rc!=0){ printf("Failed to bind zmq on %s\n",bindto); exit(1); |
