aboutsummaryrefslogtreecommitdiff
path: root/src/transport/gnunet-service-transport_ats.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport/gnunet-service-transport_ats.c')
-rw-r--r--src/transport/gnunet-service-transport_ats.c17
1 files changed, 15 insertions, 2 deletions
diff --git a/src/transport/gnunet-service-transport_ats.c b/src/transport/gnunet-service-transport_ats.c
index 55b5e20a1..74658822e 100644
--- a/src/transport/gnunet-service-transport_ats.c
+++ b/src/transport/gnunet-service-transport_ats.c
@@ -249,11 +249,11 @@ find_ai_no_session (const struct GNUNET_HELLO_Address *address)
249 249
250 250
251/** 251/**
252 * Test if ATS knows about this address. 252 * Test if ATS knows about this @a address and @a session.
253 * 253 *
254 * @param address the address 254 * @param address the address
255 * @param session the session 255 * @param session the session
256 * @return #GNUNET_YES if address is known, #GNUNET_NO if not. 256 * @return #GNUNET_YES if @a address is known, #GNUNET_NO if not.
257 */ 257 */
258int 258int
259GST_ats_is_known (const struct GNUNET_HELLO_Address *address, 259GST_ats_is_known (const struct GNUNET_HELLO_Address *address,
@@ -264,6 +264,19 @@ GST_ats_is_known (const struct GNUNET_HELLO_Address *address,
264 264
265 265
266/** 266/**
267 * Test if ATS knows about this @a address.
268 *
269 * @param address the address
270 * @return #GNUNET_YES if @a address is known, #GNUNET_NO if not.
271 */
272int
273GST_ats_is_known_no_session (const struct GNUNET_HELLO_Address *address)
274{
275 return (NULL != find_ai_no_session (address)) ? GNUNET_YES : GNUNET_NO;
276}
277
278
279/**
267 * The blocking time for an address has expired, allow ATS to 280 * The blocking time for an address has expired, allow ATS to
268 * suggest it again. 281 * suggest it again.
269 * 282 *