src/modules/statsd/lib_statsd.h
5d2d7237
 #include <stdbool.h>
595909e8
 
 #define BUFFER_SIZE 8192
 
 typedef struct StatsConnection{
     char *ip;
     char *port;
8ead5ae6
     int sock;
595909e8
 } StatsConnection;
 
5d2d7237
 bool statsd_connect(void);
 bool send_command(char *command);
 bool statsd_set(char *key, char *value);
 bool statsd_gauge(char *key, char *value);
 bool statsd_count(char *key, char *value);
 bool statsd_timing(char *key, int value);
 bool statsd_init(char *ip, char *port);
 bool statsd_destroy(void);