API to retrieve the current network size estimate. More...
#include "gnunet_util_lib.h"Go to the source code of this file.
Macros | |
| #define | GNUNET_NSE_VERSION 0x00000000 |
| Version of the network size estimation API. | |
| #define | GNUNET_NSE_log_estimate_to_n(loge) pow (2.0, (loge)) |
| Convert the logarithmic estimated returned to the 'GNUNET_NSE_Callback' into an absolute estimate in terms of the number of peers in the network. | |
Typedefs | |
| typedef void(* | GNUNET_NSE_Callback) (void *cls, struct GNUNET_TIME_Absolute timestamp, double logestimate, double std_dev) |
| Callback to call when network size estimate is updated. | |
Functions | |
| struct GNUNET_NSE_Handle * | GNUNET_NSE_connect (const struct GNUNET_CONFIGURATION_Handle *cfg, GNUNET_NSE_Callback func, void *func_cls) |
| Connect to the network size estimation service. | |
| void | GNUNET_NSE_disconnect (struct GNUNET_NSE_Handle *h) |
| Disconnect from network size estimation service. | |
API to retrieve the current network size estimate.
Definition in file gnunet_nse_service.h.