|
|
@ -9,6 +9,9 @@ |
|
|
|
#include <netdb.h> |
|
|
|
#endif |
|
|
|
|
|
|
|
#include <pearson.h> // for pearson_hash_64 |
|
|
|
#include "n2n.h" // for TRACE_DEBUG, traceEvent |
|
|
|
|
|
|
|
// TODO: move logging defs in their own header and include that
|
|
|
|
void setTraceLevel (int level); |
|
|
|
int getTraceLevel (); |
|
|
@ -16,8 +19,6 @@ int getTraceLevel (); |
|
|
|
#include <pearson.h> |
|
|
|
#include "management.h" |
|
|
|
|
|
|
|
#include "n2n.h" // for traceEvent and friends |
|
|
|
|
|
|
|
ssize_t send_reply (mgmt_req_t *req, strbuf_t *buf, size_t msg_len) { |
|
|
|
// TODO: better error handling (counters?)
|
|
|
|
return sendto(req->mgmt_sock, buf->str, msg_len, 0, |
|
|
|