From 1eef01cd60f92a3d77061d655c0217bd6f9ffce4 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 16 Jun 2014 10:10:59 +0000 Subject: notify performance monitors about destroyed addresses (for #3406) --- src/ats/gnunet-service-ats_performance.h | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'src/ats/gnunet-service-ats_performance.h') diff --git a/src/ats/gnunet-service-ats_performance.h b/src/ats/gnunet-service-ats_performance.h index da4263fe8..e5364e0e5 100644 --- a/src/ats/gnunet-service-ats_performance.h +++ b/src/ats/gnunet-service-ats_performance.h @@ -60,7 +60,7 @@ GAS_handle_performance_update (struct GNUNET_PeerIdentity *peer, const char *plugin_name, const void *plugin_addr, size_t plugin_addr_len, - const int active, + int active, struct GNUNET_ATS_Information *ats, uint32_t ats_count, struct GNUNET_BANDWIDTH_Value32NBO bandwidth_out, @@ -75,8 +75,11 @@ GAS_handle_performance_update (struct GNUNET_PeerIdentity *peer, * @param peer peer for which this is an address suggestion * @param plugin_name 0-termintated string specifying the transport plugin * @param plugin_addr binary address for the plugin to use - * @param plugin_addr_len number of bytes in plugin_addr - * @param active is this address active + * @param plugin_addr_len number of bytes in @a plugin_addr + * @param active #GNUNET_YES if this address is actively used + * to maintain a connection to a peer; + * #GNUNET_NO if the address is not actively used; + * #GNUNET_SYSERR if this address is no longer available for ATS * @param atsi performance data for the address * @param atsi_count number of performance records in @a atsi * @param bandwidth_out assigned outbound bandwidth @@ -87,7 +90,7 @@ GAS_performance_notify_all_clients (const struct GNUNET_PeerIdentity *peer, const char *plugin_name, const void *plugin_addr, size_t plugin_addr_len, - const int active, + int active, const struct GNUNET_ATS_Information *atsi, uint32_t atsi_count, struct GNUNET_BANDWIDTH_Value32NBO bandwidth_out, @@ -141,14 +144,14 @@ GAS_handle_preference_change (void *cls, */ void GAS_handle_preference_feedback (void *cls, - struct GNUNET_SERVER_Client *client, - const struct GNUNET_MessageHeader *message); + struct GNUNET_SERVER_Client *client, + const struct GNUNET_MessageHeader *message); void GAS_handle_monitor (void *cls, - struct GNUNET_SERVER_Client *client, - const struct GNUNET_MessageHeader *message); + struct GNUNET_SERVER_Client *client, + const struct GNUNET_MessageHeader *message); /** * Initialize performance subsystem. -- cgit v1.2.3