diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2023-07-15 14:39:07 +0200 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2023-07-15 14:39:07 +0200 |
| commit | 3440874807ea71ee599e5199eb40f24be3dcc9ac (patch) | |
| tree | a60cdd7cf84f1e9d879c30a9ef97b5fb2a9ac0d8 /src/publisher.c | |
| parent | 59c454173d41e15f9e2fcd7e443fc244c29851f3 (diff) | |
Minor changes
Diffstat (limited to 'src/publisher.c')
| -rw-r--r-- | src/publisher.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/src/publisher.c b/src/publisher.c index 45a248e..c9f702e 100644 --- a/src/publisher.c +++ b/src/publisher.c @@ -74,25 +74,12 @@ int main (int argc, char *argv []) zmq_ctx_destroy (context); return 0; - // // Prepare our context and publisher - // void *context = zmq_ctx_new (); - // void *publisher = zmq_socket (context, ZMQ_PUB); - // int rc = zmq_bind (publisher, "tcp://*:"STRINGIFY(PUBLISHER_PORT)); - // assert (rc == 0); - - // // Initialize random number generator - // while (1) { - // zmq_send (publisher, "Hello World", 5, 0); - // printf("AA\n"); - // } - // zmq_close (publisher); - // zmq_ctx_destroy (context); - return 0; } void publish(void *publisher, char *filepath, char* client, long int interval){ printf("Publish!\n"); char buffer[ZMQ_MSG_SIZE]; sprintf(buffer,"%s\n%s\n%ld",ZMQ_TOKEN,__key,interval); + // TODO: Send every lines of the file zmq_send (publisher, buffer, ZMQ_MSG_SIZE, 0); }
\ No newline at end of file |
