ats service address: management of ATS properties and preferences normalization More...
#include "gnunet_ats_service.h"
Go to the source code of this file.
Macros | |
#define | DEFAULT_REL_QUALITY 1.0 |
Value we return for a normalized quality score if we have no data. More... | |
Functions | |
void | GAS_normalization_update_property (struct ATS_Address *address) |
Update and normalize a prop performance information. More... | |
void | GAS_normalization_start (void) |
Start the normalization component. More... | |
void | GAS_normalization_stop (void) |
Stop the normalization component and free all items. More... | |
ats service address: management of ATS properties and preferences normalization
Definition in file gnunet-service-ats_normalization.h.
#define DEFAULT_REL_QUALITY 1.0 |
Value we return for a normalized quality score if we have no data.
Definition at line 34 of file gnunet-service-ats_normalization.h.
void GAS_normalization_update_property | ( | struct ATS_Address * | address | ) |
Update and normalize a prop performance information.
address | the address to update |
Update and normalize a prop performance information.
address | the address to update |
Definition at line 231 of file gnunet-service-ats_normalization.c.
References address, GNUNET_ATS_Properties::delay, GNUNET_ATS_Properties::distance, find_min_max_it(), GAS_plugin_solver_lock(), GAS_plugin_solver_unlock(), GNUNET_CONTAINER_multipeermap_iterate(), GNUNET_ERROR_TYPE_DEBUG, GNUNET_i2s(), GNUNET_memcmp, GSA_addresses, init_range(), LOG, normalize_address(), notify_change(), property_range, GNUNET_TIME_Relative::rel_value_us, update_avg(), and GNUNET_ATS_Properties::utilization_in.
Referenced by GAS_addresses_add(), GAS_addresses_update(), and set_prop_task().
void GAS_normalization_start | ( | void | ) |
Start the normalization component.
Definition at line 283 of file gnunet-service-ats_normalization.c.
References init_range(), and property_range.
Referenced by GNUNET_ATS_solvers_solver_start(), and run().
void GAS_normalization_stop | ( | void | ) |
Stop the normalization component and free all items.
Definition at line 293 of file gnunet-service-ats_normalization.c.
Referenced by cleanup_task(), GNUNET_ATS_solvers_solver_stop(), and run().