GNUnet 0.24.4-talerdev.1-12-g8362a9920
 
Loading...
Searching...
No Matches
gnunet_nse_service.h File Reference

API to retrieve the current network size estimate. More...

#include "gnunet_util_lib.h"
Include dependency graph for gnunet_nse_service.h:
This graph shows which files directly or indirectly include this file:

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_HandleGNUNET_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.
 

Detailed Description

API to retrieve the current network size estimate.

Definition in file gnunet_nse_service.h.