Print information about the peer identity. More...
#include "platform.h"#include "gnunet_time_lib.h"#include "gnunet_util_lib.h"#include "gnunet_pils_service.h"Go to the source code of this file.
Functions | |
| static void | shutdown_task (void *cls) |
| Task run in monitor mode when the user presses CTRL-C to abort. | |
| void | pid_change_cb (void *cls, const struct GNUNET_HELLO_Parser *hparser, const struct GNUNET_HashCode *addr_hash) |
| 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. | |
| int | main (int argc, char *const *argv) |
| The main function to obtain peer information from PILS. | |
Variables | |
| static int | ret |
| Return code. | |
| static int | once |
| Option -i. | |
| static struct GNUNET_PILS_Handle * | pils |
| Handle to PILS. | |
Print information about the peer identity.
Definition in file gnunet-pils.c.
|
static |
Task run in monitor mode when the user presses CTRL-C to abort.
Stops monitoring activity.
| cls | NULL |
Definition at line 53 of file gnunet-pils.c.
References GNUNET_PILS_disconnect(), and pils.
| void pid_change_cb | ( | void * | cls, |
| const struct GNUNET_HELLO_Parser * | hparser, | ||
| const struct GNUNET_HashCode * | addr_hash | ||
| ) |
Definition at line 64 of file gnunet-pils.c.
References GNUNET_HELLO_parser_get_id(), GNUNET_i2s(), GNUNET_SCHEDULER_shutdown(), and once.
Referenced by GNUNET_PILS_connect(), and 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 83 of file gnunet-pils.c.
References _, cfg, GNUNET_PILS_connect(), GNUNET_SCHEDULER_add_shutdown(), GNUNET_SCHEDULER_shutdown(), pid_change_cb(), pils, ret, and shutdown_task.
Referenced by main().
| int main | ( | int | argc, |
| char *const * | argv | ||
| ) |
The main function to obtain peer information from PILS.
| argc | number of arguments from the command line |
| argv | command line arguments |
Definition at line 116 of file gnunet-pils.c.
References gettext_noop, GNUNET_GETOPT_OPTION_END, GNUNET_GETOPT_option_flag(), GNUNET_OK, GNUNET_OS_project_data_gnunet(), GNUNET_PROGRAM_run(), once, options, res, ret, and run().
|
static |
|
static |
Option -i.
Definition at line 39 of file gnunet-pils.c.
Referenced by conn_status(), crc_init(), GNUNET_CRYPTO_ecdsa_key_get_anonymous(), GNUNET_CRYPTO_hmac_raw(), main(), pid_change_cb(), and task_check().
|
static |
Handle to PILS.
Definition at line 44 of file gnunet-pils.c.
Referenced by run(), and shutdown_task().