diff options
Diffstat (limited to 'src/ats/gnunet-service-ats_performance.h')
-rw-r--r-- | src/ats/gnunet-service-ats_performance.h | 96 |
1 files changed, 0 insertions, 96 deletions
diff --git a/src/ats/gnunet-service-ats_performance.h b/src/ats/gnunet-service-ats_performance.h deleted file mode 100644 index 292c27c95..000000000 --- a/src/ats/gnunet-service-ats_performance.h +++ /dev/null | |||
@@ -1,96 +0,0 @@ | |||
1 | /* | ||
2 | This file is part of GNUnet. | ||
3 | Copyright (C) 2011-2015 GNUnet e.V. | ||
4 | |||
5 | GNUnet is free software: you can redistribute it and/or modify it | ||
6 | under the terms of the GNU Affero General Public License as published | ||
7 | by the Free Software Foundation, either version 3 of the License, | ||
8 | or (at your option) any later version. | ||
9 | |||
10 | GNUnet is distributed in the hope that it will be useful, but | ||
11 | WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
13 | Affero General Public License for more details. | ||
14 | |||
15 | You should have received a copy of the GNU Affero General Public License | ||
16 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
17 | |||
18 | SPDX-License-Identifier: AGPL3.0-or-later | ||
19 | */ | ||
20 | |||
21 | /** | ||
22 | * @file ats/gnunet-service-ats_performance.h | ||
23 | * @brief ats service, interaction with 'performance' API | ||
24 | * @author Matthias Wachs | ||
25 | * @author Christian Grothoff | ||
26 | */ | ||
27 | #ifndef GNUNET_SERVICE_ATS_PERFORMANCE_H | ||
28 | #define GNUNET_SERVICE_ATS_PERFORMANCE_H | ||
29 | |||
30 | #include "gnunet_util_lib.h" | ||
31 | #include "gnunet_ats_service.h" | ||
32 | #include "ats.h" | ||
33 | |||
34 | |||
35 | /** | ||
36 | * Transmit the given performance information to all performance | ||
37 | * clients. | ||
38 | * | ||
39 | * @param peer peer for which this is an address suggestion | ||
40 | * @param plugin_name 0-termintated string specifying the transport plugin | ||
41 | * @param plugin_addr binary address for the plugin to use | ||
42 | * @param plugin_addr_len number of bytes in @a plugin_addr | ||
43 | * @param active #GNUNET_YES if this address is actively used | ||
44 | * to maintain a connection to a peer; | ||
45 | * #GNUNET_NO if the address is not actively used; | ||
46 | * #GNUNET_SYSERR if this address is no longer available for ATS | ||
47 | * @param prop performance data for the address | ||
48 | * @param local_address_info information about the local flags for the address | ||
49 | * @param bandwidth_out assigned outbound bandwidth | ||
50 | * @param bandwidth_in assigned inbound bandwidth | ||
51 | */ | ||
52 | void | ||
53 | GAS_performance_notify_all_clients (const struct GNUNET_PeerIdentity *peer, | ||
54 | const char *plugin_name, | ||
55 | const void *plugin_addr, | ||
56 | size_t plugin_addr_len, | ||
57 | int active, | ||
58 | const struct GNUNET_ATS_Properties *prop, | ||
59 | enum GNUNET_HELLO_AddressInfo | ||
60 | local_address_info, | ||
61 | struct GNUNET_BANDWIDTH_Value32NBO | ||
62 | bandwidth_out, | ||
63 | struct GNUNET_BANDWIDTH_Value32NBO | ||
64 | bandwidth_in); | ||
65 | |||
66 | |||
67 | /** | ||
68 | * Register a new performance client. | ||
69 | * | ||
70 | * @param client handle of the new client | ||
71 | * @param flag flag specifying the type of the client | ||
72 | */ | ||
73 | void | ||
74 | GAS_performance_add_client (struct GNUNET_SERVICE_Client *client, | ||
75 | enum StartFlag flag); | ||
76 | |||
77 | |||
78 | /** | ||
79 | * Initialize performance subsystem. | ||
80 | * | ||
81 | * @param server handle to our server | ||
82 | * @param addresses the address handle to use | ||
83 | */ | ||
84 | void | ||
85 | GAS_performance_init (void); | ||
86 | |||
87 | |||
88 | /** | ||
89 | * Shutdown performance subsystem. | ||
90 | */ | ||
91 | void | ||
92 | GAS_performance_done (void); | ||
93 | |||
94 | |||
95 | #endif | ||
96 | /* end of gnunet-service-ats_performance.h */ | ||