diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-02-12 14:25:33 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-02-12 14:25:33 +0000 |
commit | b08879fa56e3c3979466650ae07c55ac8873fb28 (patch) | |
tree | 4f84920cb7f79a70f9b443141caa26ea46fb1dd4 /src/transport/gnunet-service-transport_ats.h | |
parent | 4a1ac10330cedb8c26fa1ac82ca4ae156addbf6c (diff) | |
download | gnunet-b08879fa56e3c3979466650ae07c55ac8873fb28.tar.gz gnunet-b08879fa56e3c3979466650ae07c55ac8873fb28.zip |
reset blocking time for addresses upon successful connection
Diffstat (limited to 'src/transport/gnunet-service-transport_ats.h')
-rw-r--r-- | src/transport/gnunet-service-transport_ats.h | 14 |
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 780e66f60..bee38d0cd 100644 --- a/src/transport/gnunet-service-transport_ats.h +++ b/src/transport/gnunet-service-transport_ats.h | |||
@@ -67,8 +67,18 @@ GST_ats_block_address (const struct GNUNET_HELLO_Address *address, | |||
67 | struct Session *session); | 67 | struct Session *session); |
68 | 68 | ||
69 | 69 | ||
70 | /* FIXME: might want to add a function to reset the | 70 | /** |
71 | back-off from blocking */ | 71 | * Reset address blocking time. Resets the exponential |
72 | * back-off timer for this address to zero. Done when | ||
73 | * an address was used to create a successful connection. | ||
74 | * | ||
75 | * @param address the address to reset the blocking timer | ||
76 | * @param session the session (can be NULL) | ||
77 | */ | ||
78 | void | ||
79 | GST_ats_block_reset (const struct GNUNET_HELLO_Address *address, | ||
80 | struct Session *session); | ||
81 | |||
72 | 82 | ||
73 | /** | 83 | /** |
74 | * Notify ATS about the a new inbound address. We may already | 84 | * Notify ATS about the a new inbound address. We may already |