aboutsummaryrefslogtreecommitdiff
path: root/src/transport/gnunet-service-transport_ats.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-10-07 11:54:46 +0000
committerChristian Grothoff <christian@grothoff.org>2015-10-07 11:54:46 +0000
commitfd77112f5b46f75e4eb9bf155fb8052c0d79f77a (patch)
tree9808e06ede4d1d7bba0aeabd4a79d6e175da563e /src/transport/gnunet-service-transport_ats.h
parent4855e879c0203915789e4e49f6b6a658150a6626 (diff)
downloadgnunet-fd77112f5b46f75e4eb9bf155fb8052c0d79f77a.tar.gz
gnunet-fd77112f5b46f75e4eb9bf155fb8052c0d79f77a.zip
add additional diagnostics to help localize #3971 invariant violation
Diffstat (limited to 'src/transport/gnunet-service-transport_ats.h')
-rw-r--r--src/transport/gnunet-service-transport_ats.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/transport/gnunet-service-transport_ats.h b/src/transport/gnunet-service-transport_ats.h
index 323191a4d..de0800d0a 100644
--- a/src/transport/gnunet-service-transport_ats.h
+++ b/src/transport/gnunet-service-transport_ats.h
@@ -42,11 +42,11 @@ GST_ats_done (void);
42 42
43 43
44/** 44/**
45 * Test if ATS knows about this address. 45 * Test if ATS knows about this @a address and @a session.
46 * 46 *
47 * @param address the address 47 * @param address the address
48 * @param session the session 48 * @param session the session
49 * @return #GNUNET_YES if address is known, #GNUNET_NO if not. 49 * @return #GNUNET_YES if @a address is known, #GNUNET_NO if not.
50 */ 50 */
51int 51int
52GST_ats_is_known (const struct GNUNET_HELLO_Address *address, 52GST_ats_is_known (const struct GNUNET_HELLO_Address *address,
@@ -54,6 +54,16 @@ GST_ats_is_known (const struct GNUNET_HELLO_Address *address,
54 54
55 55
56/** 56/**
57 * Test if ATS knows about this @a address.
58 *
59 * @param address the address
60 * @return #GNUNET_YES if @a address is known, #GNUNET_NO if not.
61 */
62int
63GST_ats_is_known_no_session (const struct GNUNET_HELLO_Address *address);
64
65
66/**
57 * Temporarily block a valid address for use by ATS for address 67 * Temporarily block a valid address for use by ATS for address
58 * suggestions. This function should be called if an address was 68 * suggestions. This function should be called if an address was
59 * suggested by ATS but failed to perform (i.e. failure to establish a 69 * suggested by ATS but failed to perform (i.e. failure to establish a