peerstore tool More...
Go to the source code of this file.
Functions | |
static void | shutdown_task (void *cls) |
Run on shutdown. More... | |
static void | run (void *cls, char *const *args, const char *cfgfile, const struct GNUNET_CONFIGURATION_Handle *cfg) |
Main function that will be run by the scheduler. More... | |
int | main (int argc, char *const *argv) |
The main function to peerstore. More... | |
Variables | |
static int | ret |
static struct GNUNET_PEERSTORE_Handle * | peerstore_handle |
peerstore tool
Definition in file gnunet-peerstore.c.
|
static |
Run on shutdown.
cls | unused |
Definition at line 44 of file gnunet-peerstore.c.
References GNUNET_PEERSTORE_disconnect(), GNUNET_YES, and peerstore_handle.
Referenced by run().
|
static |
Main function that will be run by the scheduler.
cls | closure |
args | remaining command-line arguments |
cfgfile | name of the configuration file used (for saving, can be NULL!) |
cfg | configuration |
Definition at line 63 of file gnunet-peerstore.c.
References cfg, GNUNET_assert, GNUNET_PEERSTORE_connect(), GNUNET_SCHEDULER_add_shutdown(), peerstore_handle, ret, and shutdown_task().
Referenced by main().
int main | ( | int | argc, |
char *const * | argv | ||
) |
The main function to peerstore.
argc | number of arguments from the command line |
argv | command line arguments |
Definition at line 84 of file gnunet-peerstore.c.
References gettext_noop, GNUNET_GETOPT_OPTION_END, GNUNET_OK, GNUNET_PROGRAM_run(), options, ret, and run().
|
static |
Definition at line 30 of file gnunet-peerstore.c.
|
static |
Definition at line 35 of file gnunet-peerstore.c.
Referenced by run(), and shutdown_task().