Minor changes

This commit is contained in:
Loic Guegan 2023-07-15 18:41:58 +02:00
parent 97c48bd23d
commit 644bd0f612
2 changed files with 3 additions and 3 deletions

View file

@ -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);