mirror of
https://gitlab.com/manzerbredes/ina260-zmq-publisher.git
synced 2025-05-07 04:13:57 +00:00
Minor changes
This commit is contained in:
parent
97c48bd23d
commit
644bd0f612
2 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue