diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-10-17 07:03:29 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-10-17 07:03:29 +0000 |
commit | 7610732f7dc73ec59c5768b707f75cde484e877f (patch) | |
tree | cfa9160888e25cb7235eaadd9cbb0c757589e17a /src/ats/gnunet-service-ats_performance.h | |
parent | cdff0fc0f6f3f2b8a0e1ec1b98eba0b3a1aa6faa (diff) | |
download | gnunet-7610732f7dc73ec59c5768b707f75cde484e877f.tar.gz gnunet-7610732f7dc73ec59c5768b707f75cde484e877f.zip |
send performance info to clients
Diffstat (limited to 'src/ats/gnunet-service-ats_performance.h')
-rw-r--r-- | src/ats/gnunet-service-ats_performance.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/ats/gnunet-service-ats_performance.h b/src/ats/gnunet-service-ats_performance.h index 79ffeb5b3..6dfd11202 100644 --- a/src/ats/gnunet-service-ats_performance.h +++ b/src/ats/gnunet-service-ats_performance.h | |||
@@ -28,6 +28,7 @@ | |||
28 | #define GNUNET_SERVICE_ATS_PERFORMANCE_H | 28 | #define GNUNET_SERVICE_ATS_PERFORMANCE_H |
29 | 29 | ||
30 | #include "gnunet_util_lib.h" | 30 | #include "gnunet_util_lib.h" |
31 | #include "gnunet_transport_service.h" // FIXME | ||
31 | #include "ats.h" | 32 | #include "ats.h" |
32 | 33 | ||
33 | /** | 34 | /** |
@@ -52,6 +53,29 @@ GAS_performance_remove_client (struct GNUNET_SERVER_Client *client); | |||
52 | 53 | ||
53 | 54 | ||
54 | /** | 55 | /** |
56 | * Transmit the given performance information to all performance | ||
57 | * clients. | ||
58 | * | ||
59 | * @param peer peer for which this is an address suggestion | ||
60 | * @param plugin_name 0-termintated string specifying the transport plugin | ||
61 | * @param plugin_addr binary address for the plugin to use | ||
62 | * @param plugin_addr_len number of bytes in plugin_addr | ||
63 | * @param atsi performance data for the address | ||
64 | * @param atsi_count number of performance records in 'ats' | ||
65 | * @param bandwidth_out assigned outbound bandwidth | ||
66 | * @param bandwidth_in assigned inbound bandwidth | ||
67 | */ | ||
68 | void | ||
69 | GAS_performance_notify_clients (const struct GNUNET_PeerIdentity *peer, | ||
70 | const char *plugin_name, | ||
71 | const void *plugin_addr, size_t plugin_addr_len, | ||
72 | const struct GNUNET_TRANSPORT_ATS_Information *atsi, | ||
73 | uint32_t atsi_count, | ||
74 | struct GNUNET_BANDWIDTH_Value32NBO bandwidth_out, | ||
75 | struct GNUNET_BANDWIDTH_Value32NBO bandwidth_in); | ||
76 | |||
77 | |||
78 | /** | ||
55 | * Handle 'reservation request' messages from clients. | 79 | * Handle 'reservation request' messages from clients. |
56 | * | 80 | * |
57 | * @param cls unused, NULL | 81 | * @param cls unused, NULL |