From 65b339b7ce68fcbaec9df6f66e8ed45e60b39ce1 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 27 Jan 2019 00:36:47 +0100 Subject: more work on #5385 --- src/cadet/cadet_api_list_tunnels.c | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) (limited to 'src/cadet/cadet_api_list_tunnels.c') diff --git a/src/cadet/cadet_api_list_tunnels.c b/src/cadet/cadet_api_list_tunnels.c index 96343bf4d..7d0534e41 100644 --- a/src/cadet/cadet_api_list_tunnels.c +++ b/src/cadet/cadet_api_list_tunnels.c @@ -18,7 +18,7 @@ SPDX-License-Identifier: AGPL3.0-or-later */ /** - * @file cadet/cadet_api.c + * @file cadet/cadet_api_list_tunnels.c * @brief cadet api: client implementation of cadet service * @author Bartlomiej Polot * @author Christian Grothoff @@ -31,9 +31,8 @@ #include "cadet_protocol.h" - /** - * Ugly legacy hack. + * Operation handle. */ struct GNUNET_CADET_ListTunnels { @@ -47,6 +46,27 @@ struct GNUNET_CADET_ListTunnels * Info callback closure for @c tunnels_cb. */ void *tunnels_cb_cls; + + /** + * Message queue to talk to CADET service. + */ + struct GNUNET_MQ_Handle *mq; + + /** + * Configuration we use. + */ + const struct GNUNET_CONFIGURATION_Handle *cfg; + + /** + * Task to reconnect. + */ + struct GNUNET_SCHEDULER_Task *reconnect_task; + + /** + * Backoff for reconnect attempts. + */ + struct GNUNET_TIME_Relative backoff; + }; -- cgit v1.2.3