Program to display network size estimates from the NSE service. More...
Go to the source code of this file.
Functions | |
static void | do_shutdown (void *cls) |
Task to shutdown and clean up all state. More... | |
static void | handle_estimate (void *cls, struct GNUNET_TIME_Absolute timestamp, double estimate, double std_dev) |
Callback to call when network size estimate is updated. More... | |
static void | run (void *cls, char *const *args, const char *cfgfile, const struct GNUNET_CONFIGURATION_Handle *cfg) |
Actual main function that runs the emulation. More... | |
int | main (int argc, char *const *argv) |
Main function. More... | |
Variables | |
static struct GNUNET_NSE_Handle * | nse |
The handle to the NSE service. More... | |
static int | status |
The program status; 0 for success. More... | |
static int | monitor |
Monitor flag. More... | |
Program to display network size estimates from the NSE service.
Definition in file gnunet-nse.c.
|
static |
Task to shutdown and clean up all state.
cls | NULL |
Definition at line 53 of file gnunet-nse.c.
References GNUNET_NSE_disconnect(), and nse.
Referenced by run().
|
static |
Callback to call when network size estimate is updated.
cls | NULL |
timestamp | server timestamp |
estimate | the value of the current network size estimate |
std_dev | standard deviation (rounded down to nearest integer) of the size estimation values seen |
Definition at line 74 of file gnunet-nse.c.
References GNUNET_NSE_log_estimate_to_n, GNUNET_SCHEDULER_shutdown(), GNUNET_STRINGS_absolute_time_to_string(), monitor, status, and timestamp().
Referenced by run().
|
static |
Actual main function that runs the emulation.
cls | unused |
args | remaining args, unused |
cfgfile | name of the configuration |
cfg | configuration handle |
Definition at line 101 of file gnunet-nse.c.
References consensus-simulation::args, cfg, do_shutdown(), GNUNET_NSE_connect(), GNUNET_SCHEDULER_add_shutdown(), handle_estimate(), and nse.
Referenced by main().
int main | ( | int | argc, |
char *const * | argv | ||
) |
Main function.
Definition at line 120 of file gnunet-nse.c.
References gettext_noop, GNUNET_GETOPT_OPTION_END, GNUNET_GETOPT_option_flag(), GNUNET_OK, GNUNET_OS_project_data_gnunet(), GNUNET_PROGRAM_run(), monitor, options, run(), and status.
|
static |
The handle to the NSE service.
Definition at line 34 of file gnunet-nse.c.
Referenced by DHTU_ip_init(), do_shutdown(), and run().
|
static |
The program status; 0 for success.
Definition at line 39 of file gnunet-nse.c.
Referenced by _nss_gns_gethostbyname2_r(), add_revocation(), broadcast_status(), cb_intersection_element_removed(), check_status(), conn_2s(), cr_cont(), create_did_cb(), deserialize_download(), enc_2s(), fork_and_exec(), get_url_benchmark_data(), GNUNET_PQ_eval_result(), GNUNET_PQ_exec_prepared(), handle_auto_result(), handle_cadet_hangup_message(), handle_estimate(), handle_monitor_notify(), handle_response(), handle_status(), list_callback(), load_member_session_history(), main(), maint_child_death(), pabc_create_presentation(), PABC_read_usr_ctx(), PABC_write_public_parameters(), PABC_write_usr_ctx(), plugin_callback(), print_did_document(), process_result_message(), process_status(), process_status_message(), put_continuation(), remove_continuation(), requester_callback(), responder_callback(), send_ack(), send_client_element(), set_attributes_from_idtoken(), set_result_cb(), sigchld_handler(), srv_status(), and try_reconnect().
|
static |
Monitor flag.
Definition at line 44 of file gnunet-nse.c.
Referenced by handle_estimate(), and main().