GNUnet 0.22.2
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. More...
 
#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. More...
 

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

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. More...
 
void GNUNET_NSE_disconnect (struct GNUNET_NSE_Handle *h)
 Disconnect from network size estimation service. More...
 

Detailed Description

API to retrieve the current network size estimate.

Definition in file gnunet_nse_service.h.