#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <locale.h>
#include <libgen.h>
#include <errno.h>
#include "nilorea/n_log.h"
#include "nilorea/n_network.h"
#include "nilorea/n_kafka.h"
#include "cJSON.h"
#include "rdkafka.h"
Go to the source code of this file.
|
| int | main (int argc, char *argv[]) |
| |
| static void | stop (int sig) |
| |
| void | usage (void) |
| |
◆ ERROR
◆ NB_TEST_EVENTS
| #define NB_TEST_EVENTS 10 |
◆ OK
◆ main()
| int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Definition at line 79 of file ex_kafka.c.
References __n_assert, _nstr, _str, config_file, N_STR::data, event_file, event_log_file, event_string, N_KAFKA_EVENT::event_string, FALL_THROUGH, get_log_file(), getoptret, KAFKA_MODE, list_foreach, local_strdup, LOG_DEBUG, LOG_ERR, LOG_INFO, log_level, LOG_NOTICE, LOG_NULL, log_prefix, Malloc, n_kafka_delete(), n_kafka_dump_unprocessed(), n_kafka_event_destroy(), n_kafka_get_event(), n_kafka_get_status(), n_kafka_load_config(), n_kafka_new_event_from_char(), n_kafka_new_event_from_file(), n_kafka_produce(), n_kafka_start_polling_thread(), n_log, N_KAFKA::received_events, run, N_KAFKA_EVENT::schema_id, N_KAFKA::schema_id, set_log_file(), set_log_level(), stop(), and usage().
◆ stop()
| static void stop |
( |
int |
sig | ) |
|
|
static |
◆ usage()
◆ config_file
◆ event_file
◆ event_log_file
| char * event_log_file = NULL |
◆ event_string
| char * event_string = NULL |
◆ getoptret
◆ KAFKA_MODE
◆ log_level
◆ log_prefix
◆ PRODUCER_MODE
◆ run