From 0c593a0f20e5b149645dfdc53e235e8805431021 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Tue, 2 May 2017 11:23:05 +0200 Subject: [PATCH] libcollectdclient: Improve documentation of lcc_listener_t.conn. --- src/libcollectdclient/collectd/server.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/libcollectdclient/collectd/server.h b/src/libcollectdclient/collectd/server.h index 38bc68f7..ef6b792b 100644 --- a/src/libcollectdclient/collectd/server.h +++ b/src/libcollectdclient/collectd/server.h @@ -48,7 +48,9 @@ typedef int (*lcc_network_parser_t)(void *payload, size_t payload_size, /* lcc_listener_t holds parameters for running a collectd server. */ typedef struct { - /* conn is a UDP socket for the server to listen on. */ + /* conn is a UDP socket for the server to listen on. If set to <0 node and + * service will be used to open a new UDP socket. If >=0, it is the caller's + * job to clean up the socket. */ int conn; /* node is the local address to listen on if conn is <0. Defaults to "::" (any -- 2.11.0