statsd-c-client
statsd-c-client copied to clipboard
A trivial statsd client in C
Would you like to [add more error handling](https://github.com/romanbsd/statsd-c-client/blob/611ae909f76dfd3adcbfc58fef3936296d50319c/uptimed.c#L85 "Update candidate: main()") for return values from functions like “[statsd_init_with_namespace](https://github.com/romanbsd/statsd-c-client/blob/0bfa3d59e29ad7eff332c9e2506a23d311ff8db4/statsd-client.c#L15 "Software initialisation")”?
[An extra null pointer check is not needed](https://stackoverflow.com/questions/18775608/free-a-null-pointer-anyway-or-check-first "Free a null pointer anyway or check first?") in [a function like “statsd_finalize”](https://github.com/romanbsd/statsd-c-client/blob/0bfa3d59e29ad7eff332c9e2506a23d311ff8db4/statsd-client.c#L82 "Update candidate: statsd_finalize()").
I would like to point out that an identifier like “[`_H_STATSD_CLIENT`](https://github.com/romanbsd/statsd-c-client/blob/0bfa3d59e29ad7eff332c9e2506a23d311ff8db4/statsd-client.h#L1 "Update candidate")” [does eventually not fit](https://www.securecoding.cert.org/confluence/display/c/DCL37-C.+Do+not+declare+or+define+a+reserved+identifier#DCL37-C.Donotdeclareordefineareservedidentifier-NoncompliantCodeExample%28IncludeGuard%29 "Do not use identifiers which are reserved for the compiler implementation.") to the...
I'm using `statsd-c-client` in a C++ project of mine and I've been trying to add some functionality in order to detect if statsd is listening from `server-ip` on `port`. But...