diff options
author | Christian Grothoff <christian@grothoff.org> | 2014-06-16 10:10:59 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2014-06-16 10:10:59 +0000 |
commit | 1eef01cd60f92a3d77061d655c0217bd6f9ffce4 (patch) | |
tree | db83ba950eb0ece1efb9b682e379ccd1d0dd4b72 /src/ats/gnunet-service-ats_performance.h | |
parent | c1d89ed3cf92fa2492a5639e725aadd74742f135 (diff) | |
download | gnunet-1eef01cd60f92a3d77061d655c0217bd6f9ffce4.tar.gz gnunet-1eef01cd60f92a3d77061d655c0217bd6f9ffce4.zip |
notify performance monitors about destroyed addresses (for #3406)
Diffstat (limited to 'src/ats/gnunet-service-ats_performance.h')
-rw-r--r-- | src/ats/gnunet-service-ats_performance.h | 19 |
1 files changed, 11 insertions, 8 deletions
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, | |||
60 | const char *plugin_name, | 60 | const char *plugin_name, |
61 | const void *plugin_addr, | 61 | const void *plugin_addr, |
62 | size_t plugin_addr_len, | 62 | size_t plugin_addr_len, |
63 | const int active, | 63 | int active, |
64 | struct GNUNET_ATS_Information *ats, | 64 | struct GNUNET_ATS_Information *ats, |
65 | uint32_t ats_count, | 65 | uint32_t ats_count, |
66 | struct GNUNET_BANDWIDTH_Value32NBO bandwidth_out, | 66 | struct GNUNET_BANDWIDTH_Value32NBO bandwidth_out, |
@@ -75,8 +75,11 @@ GAS_handle_performance_update (struct GNUNET_PeerIdentity *peer, | |||
75 | * @param peer peer for which this is an address suggestion | 75 | * @param peer peer for which this is an address suggestion |
76 | * @param plugin_name 0-termintated string specifying the transport plugin | 76 | * @param plugin_name 0-termintated string specifying the transport plugin |
77 | * @param plugin_addr binary address for the plugin to use | 77 | * @param plugin_addr binary address for the plugin to use |
78 | * @param plugin_addr_len number of bytes in plugin_addr | 78 | * @param plugin_addr_len number of bytes in @a plugin_addr |
79 | * @param active is this address active | 79 | * @param active #GNUNET_YES if this address is actively used |
80 | * to maintain a connection to a peer; | ||
81 | * #GNUNET_NO if the address is not actively used; | ||
82 | * #GNUNET_SYSERR if this address is no longer available for ATS | ||
80 | * @param atsi performance data for the address | 83 | * @param atsi performance data for the address |
81 | * @param atsi_count number of performance records in @a atsi | 84 | * @param atsi_count number of performance records in @a atsi |
82 | * @param bandwidth_out assigned outbound bandwidth | 85 | * @param bandwidth_out assigned outbound bandwidth |
@@ -87,7 +90,7 @@ GAS_performance_notify_all_clients (const struct GNUNET_PeerIdentity *peer, | |||
87 | const char *plugin_name, | 90 | const char *plugin_name, |
88 | const void *plugin_addr, | 91 | const void *plugin_addr, |
89 | size_t plugin_addr_len, | 92 | size_t plugin_addr_len, |
90 | const int active, | 93 | int active, |
91 | const struct GNUNET_ATS_Information *atsi, | 94 | const struct GNUNET_ATS_Information *atsi, |
92 | uint32_t atsi_count, | 95 | uint32_t atsi_count, |
93 | struct GNUNET_BANDWIDTH_Value32NBO bandwidth_out, | 96 | struct GNUNET_BANDWIDTH_Value32NBO bandwidth_out, |
@@ -141,14 +144,14 @@ GAS_handle_preference_change (void *cls, | |||
141 | */ | 144 | */ |
142 | void | 145 | void |
143 | GAS_handle_preference_feedback (void *cls, | 146 | GAS_handle_preference_feedback (void *cls, |
144 | struct GNUNET_SERVER_Client *client, | 147 | struct GNUNET_SERVER_Client *client, |
145 | const struct GNUNET_MessageHeader *message); | 148 | const struct GNUNET_MessageHeader *message); |
146 | 149 | ||
147 | 150 | ||
148 | void | 151 | void |
149 | GAS_handle_monitor (void *cls, | 152 | GAS_handle_monitor (void *cls, |
150 | struct GNUNET_SERVER_Client *client, | 153 | struct GNUNET_SERVER_Client *client, |
151 | const struct GNUNET_MessageHeader *message); | 154 | const struct GNUNET_MessageHeader *message); |
152 | 155 | ||
153 | /** | 156 | /** |
154 | * Initialize performance subsystem. | 157 | * Initialize performance subsystem. |