The ATS plugin will pass a pointer to a struct of this type as to the initialization function of the ATS plugins. More...
#include <gnunet_ats_plugin.h>
Data Fields | |
const struct GNUNET_CONFIGURATION_Handle * | cfg |
Configuration handle to be used by the solver. More... | |
struct GNUNET_STATISTICS_Handle * | stats |
Statistics handle to be used by the solver. More... | |
void * | cls |
Closure to pass to all callbacks in this struct. More... | |
struct GNUNET_CONTAINER_MultiPeerMap * | addresses |
Hashmap containing all addresses available. More... | |
GAS_bandwidth_changed_cb | bandwidth_changed_cb |
ATS addresses callback to be notified about bandwidth assignment changes. More... | |
GAS_get_preferences | get_preferences |
ATS addresses function to obtain preference values. More... | |
GAS_get_connectivity | get_connectivity |
ATS addresses function to obtain preference values. More... | |
GAS_solver_information_callback | info_cb |
Callback for solver to call with status information, can be NULL. More... | |
unsigned int | network_count |
Number of networks available, size of the out_quota and in_quota arrays. More... | |
unsigned long long | out_quota [6] |
Array of configured outbound quotas Order according to networks in network array. More... | |
unsigned long long | in_quota [6] |
Array of configured inbound quotas Order according to networks in network array. More... | |
The ATS plugin will pass a pointer to a struct of this type as to the initialization function of the ATS plugins.
Definition at line 426 of file gnunet_ats_plugin.h.
const struct GNUNET_CONFIGURATION_Handle* GNUNET_ATS_PluginEnvironment::cfg |
Configuration handle to be used by the solver.
Definition at line 431 of file gnunet_ats_plugin.h.
Referenced by gnunet_testing.Peer::__del__(), GAS_plugin_init(), gnunet_testing.Peer::get_statistics_value(), GNUNET_ATS_solvers_solver_start(), gnunet_testing.Peer::start(), and gnunet_testing.Peer::stop().
struct GNUNET_STATISTICS_Handle* GNUNET_ATS_PluginEnvironment::stats |
Statistics handle to be used by the solver.
Definition at line 436 of file gnunet_ats_plugin.h.
Referenced by address_decrement_active(), GAS_plugin_init(), GAS_proportional_address_add(), GAS_proportional_address_delete(), GNUNET_ATS_solvers_solver_start(), GNUNET_ATS_solvers_solver_stop(), and update_active_address().
void* GNUNET_ATS_PluginEnvironment::cls |
Closure to pass to all callbacks in this struct.
Definition at line 441 of file gnunet_ats_plugin.h.
Referenced by all_require_connectivity(), distribute_bandwidth(), distribute_bandwidth_in_network(), GAS_plugin_init(), libgnunet_plugin_ats_proportional_init(), propagate_bandwidth(), and update_active_address().
struct GNUNET_CONTAINER_MultiPeerMap* GNUNET_ATS_PluginEnvironment::addresses |
Hashmap containing all addresses available.
Definition at line 446 of file gnunet_ats_plugin.h.
Referenced by free_all_it(), GAS_plugin_init(), get_active_address(), GNUNET_ATS_solvers_solver_start(), and update_active_address().
GAS_bandwidth_changed_cb GNUNET_ATS_PluginEnvironment::bandwidth_changed_cb |
ATS addresses callback to be notified about bandwidth assignment changes.
Definition at line 451 of file gnunet_ats_plugin.h.
Referenced by GAS_plugin_init(), GNUNET_ATS_solvers_solver_start(), propagate_bandwidth(), and update_active_address().
GAS_get_preferences GNUNET_ATS_PluginEnvironment::get_preferences |
ATS addresses function to obtain preference values.
Definition at line 456 of file gnunet_ats_plugin.h.
Referenced by distribute_bandwidth(), GAS_plugin_init(), and GNUNET_ATS_solvers_solver_start().
GAS_get_connectivity GNUNET_ATS_PluginEnvironment::get_connectivity |
ATS addresses function to obtain preference values.
Definition at line 461 of file gnunet_ats_plugin.h.
Referenced by all_require_connectivity(), GAS_plugin_init(), and update_active_address().
GAS_solver_information_callback GNUNET_ATS_PluginEnvironment::info_cb |
Callback for solver to call with status information, can be NULL.
Definition at line 467 of file gnunet_ats_plugin.h.
Referenced by distribute_bandwidth_in_network(), GAS_plugin_init(), and GNUNET_ATS_solvers_solver_start().
unsigned int GNUNET_ATS_PluginEnvironment::network_count |
Number of networks available, size of the out_quota and in_quota arrays.
Definition at line 473 of file gnunet_ats_plugin.h.
Referenced by distribute_bandwidth_in_network(), GAS_plugin_init(), GNUNET_ATS_solvers_solver_start(), and libgnunet_plugin_ats_proportional_done().
unsigned long long GNUNET_ATS_PluginEnvironment::out_quota[6] |
Array of configured outbound quotas Order according to networks in network array.
Definition at line 479 of file gnunet_ats_plugin.h.
Referenced by GAS_plugin_init(), and GNUNET_ATS_solvers_solver_start().
unsigned long long GNUNET_ATS_PluginEnvironment::in_quota[6] |
Array of configured inbound quotas Order according to networks in network array.
Definition at line 485 of file gnunet_ats_plugin.h.
Referenced by GAS_plugin_init(), and GNUNET_ATS_solvers_solver_start().