From e55403ed71282d7bfd8b56df219de3c28a8af064 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 25 Nov 2024 15:45:37 +0100 Subject: Merging upstream version 2.0.3+dfsg: - does not include dygraphs anymore (Closes: #923993) - does not include pako anymore (Closes: #1042533) - does not include dashboard binaries anymore (Closes: #1045145) Signed-off-by: Daniel Baumann --- src/streaming/sender-destinations.h | 38 +++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 src/streaming/sender-destinations.h (limited to 'src/streaming/sender-destinations.h') diff --git a/src/streaming/sender-destinations.h b/src/streaming/sender-destinations.h new file mode 100644 index 000000000..e7c72cef7 --- /dev/null +++ b/src/streaming/sender-destinations.h @@ -0,0 +1,38 @@ +// SPDX-License-Identifier: GPL-3.0-or-later + +#ifndef NETDATA_SENDER_DESTINATIONS_H +#define NETDATA_SENDER_DESTINATIONS_H + +#include "libnetdata/libnetdata.h" +#include "stream-handshake.h" +#include "database/rrd.h" + +struct rrdpush_destinations { + STRING *destination; + bool ssl; + uint32_t attempts; + time_t since; + time_t postpone_reconnection_until; + STREAM_HANDSHAKE reason; + + struct rrdpush_destinations *prev; + struct rrdpush_destinations *next; +}; + +void rrdpush_sender_ssl_init(RRDHOST *host); + +void rrdpush_reset_destinations_postpone_time(RRDHOST *host); + +void rrdpush_destinations_init(RRDHOST *host); +void rrdpush_destinations_free(RRDHOST *host); + +int connect_to_one_of_destinations( + RRDHOST *host, + int default_port, + struct timeval *timeout, + size_t *reconnects_counter, + char *connected_to, + size_t connected_to_size, + struct rrdpush_destinations **destination); + +#endif //NETDATA_SENDER_DESTINATIONS_H -- cgit v1.2.3