mirror of
https://gitlab.com/manzerbredes/ina260-zmq-publisher.git
synced 2025-04-07 04:16:26 +02:00
Minor changes
This commit is contained in:
parent
19a77c6fd7
commit
565984ed49
1 changed files with 6 additions and 0 deletions
|
@ -29,6 +29,12 @@ int main (int argc, char *argv [])
|
||||||
__port=atoi(argv[4]);
|
__port=atoi(argv[4]);
|
||||||
__key=argv[5];
|
__key=argv[5];
|
||||||
|
|
||||||
|
//----- Sanity checks
|
||||||
|
if(__loginterval<MIN_INTERVAL){
|
||||||
|
printf("Log interval is too small (min=%ds)\n",MIN_INTERVAL);
|
||||||
|
exit(2);
|
||||||
|
}
|
||||||
|
|
||||||
//----- Prepare our context and publisher
|
//----- Prepare our context and publisher
|
||||||
void *context = zmq_ctx_new ();
|
void *context = zmq_ctx_new ();
|
||||||
void *publisher = zmq_socket (context, ZMQ_PUB);
|
void *publisher = zmq_socket (context, ZMQ_PUB);
|
||||||
|
|
Loading…
Add table
Reference in a new issue