diff options
Diffstat (limited to 'src/publisher.c')
| -rw-r--r-- | src/publisher.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/publisher.c b/src/publisher.c index c30b52a..0b1ac53 100644 --- a/src/publisher.c +++ b/src/publisher.c @@ -37,7 +37,7 @@ int main (int argc, char *argv []) void *publisher = zmq_socket (context, ZMQ_PUB); char bindto[30]; sprintf(bindto,"tcp://%s:%d",__interface,__port); - int rc = zmq_bind (publisher, bindto); + int rc = zmq_connect (publisher, bindto); if(rc!=0){ printf("Failed to bind zmq on %s\n",bindto); exit(1); @@ -65,7 +65,7 @@ int main (int argc, char *argv []) // Send current one if(FILE_EXISTS(logfile)){ publish(publisher,logfile,client,interval); - remove(logfile); + //remove(logfile); } } } |
