![]() |
GNUnet
0.11.x
|
search for data in DHT More...
Go to the source code of this file.
Functions | |
static void | shutdown_task (void *cls) |
static void | message_sent_cont (void *cls) |
Signature of the main function of a task. More... | |
static void | run (void *cls, char *const *args, const char *cfgfile, const struct GNUNET_CONFIGURATION_Handle *c) |
Main function that will be run by the scheduler. More... | |
int | main (int argc, char *const *argv) |
Entry point for gnunet-dht-put. More... | |
Variables | |
static unsigned int | query_type |
The type of the query. More... | |
struct GNUNET_HashCode | key |
The key used in the DHT. More... | |
static char * | query_key |
The key for the query. More... | |
static struct GNUNET_TIME_Relative | expiration |
User supplied expiration value. More... | |
static unsigned int | replication = 5 |
Desired replication level. More... | |
static unsigned int | verbose |
Be verbose. More... | |
static int | demultixplex_everywhere |
Use #GNUNET_DHT_DEMULTIPLEX_EVERYWHERE. More... | |
static int | record_route |
Use GNUNET_DHT_RO_RECORD_ROUTE. More... | |
static struct GNUNET_DHT_Handle * | dht_handle |
Handle to the DHT. More... | |
static const struct GNUNET_CONFIGURATION_Handle * | cfg |
Global handle of the configuration. More... | |
static int | ret |
Global status value. More... | |
static char * | data |
The data to insert into the dht. More... | |
search for data in DHT
Definition in file gnunet-dht-put.c.
|
static |
Definition at line 92 of file gnunet-dht-put.c.
References GNUNET_DHT_disconnect().
Referenced by message_sent_cont().
|
static |
Signature of the main function of a task.
cls | closure |
Definition at line 108 of file gnunet-dht-put.c.
References GNUNET_SCHEDULER_add_now(), and shutdown_task().
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!) |
c | configuration |
Definition at line 123 of file gnunet-dht-put.c.
References _, data, demultixplex_everywhere, expiration, GNUNET_BLOCK_TYPE_ANY, GNUNET_BLOCK_TYPE_TEST, GNUNET_CRYPTO_hash(), GNUNET_DHT_connect(), GNUNET_DHT_put(), GNUNET_DHT_RO_DEMULTIPLEX_EVERYWHERE, GNUNET_DHT_RO_NONE, GNUNET_DHT_RO_RECORD_ROUTE, GNUNET_TIME_relative_to_absolute(), key, message_sent_cont(), query_key, query_type, record_route, replication, ret, and verbose.
Referenced by main().
int main | ( | int | argc, |
char *const * | argv | ||
) |
Entry point for gnunet-dht-put.
argc | number of arguments from the command line |
argv | command line arguments |
Definition at line 180 of file gnunet-dht-put.c.
References data, demultixplex_everywhere, expiration, gettext_noop, GNUNET_GETOPT_OPTION_END, GNUNET_GETOPT_option_flag(), GNUNET_GETOPT_option_relative_time(), GNUNET_GETOPT_option_string(), GNUNET_GETOPT_option_uint(), GNUNET_GETOPT_option_verbose(), GNUNET_OK, GNUNET_PROGRAM_run(), GNUNET_STRINGS_get_utf8_args(), GNUNET_TIME_UNIT_HOURS, query_key, query_type, record_route, replication, ret, run(), and verbose.
|
static |
The type of the query.
Definition at line 32 of file gnunet-dht-put.c.
struct GNUNET_HashCode key |
The key used in the DHT.
Definition at line 37 of file gnunet-dht-put.c.
Referenced by build_result_set(), close_service_room(), collector(), connect_tunnel(), decode_and_send(), dns_string_to_value(), get_ibf_key(), get_iv_key(), get_redirect_state(), get_result_iterator(), GNUNET_ABE_cpabe_create_master_key(), GNUNET_ABE_cpabe_deserialize_key(), GNUNET_ABE_cpabe_deserialize_master_key(), GNUNET_CRYPTO_cpabe_create_master_key(), GNUNET_CRYPTO_cpabe_deserialize_key(), GNUNET_CRYPTO_cpabe_deserialize_master_key(), GNUNET_CRYPTO_rsa_private_key_decode(), GNUNET_CRYPTO_rsa_public_key_decode(), GNUNET_DATASTORE_get_key(), GNUNET_DATASTORE_put(), GNUNET_DATASTORE_remove(), GNUNET_DHT_get_start(), GNUNET_DHT_monitor_start(), GNUNET_DHT_put(), GNUNET_REVOCATION_query(), GNUNET_uri_parse_query(), handle_client_redirect_to_ip(), handle_client_redirect_to_service(), handle_member_id(), handle_recv_message(), handle_room_close(), handle_room_entry(), handle_room_open(), handle_send_message(), iterateBits(), jwt_parse_attributes(), message_sent_cont(), no_more_local_results(), open_room(), process_ksk_result(), process_migration_content(), process_sks_result(), regex_edge_iterator(), regex_iterator(), run(), setup_cipher(), setup_state_record(), store_skipped_key(), transmit_item(), try_old_ax_keys(), and update_config_sections().
|
static |
The key for the query.
Definition at line 42 of file gnunet-dht-put.c.
|
static |
User supplied expiration value.
Definition at line 47 of file gnunet-dht-put.c.
|
static |
Desired replication level.
Definition at line 52 of file gnunet-dht-put.c.
|
static |
|
static |
Use #GNUNET_DHT_DEMULTIPLEX_EVERYWHERE.
Definition at line 62 of file gnunet-dht-put.c.
|
static |
Use GNUNET_DHT_RO_RECORD_ROUTE.
Definition at line 67 of file gnunet-dht-put.c.
|
static |
Handle to the DHT.
Definition at line 72 of file gnunet-dht-put.c.
|
static |
Global handle of the configuration.
Definition at line 78 of file gnunet-dht-put.c.
|
static |
Global status value.
Definition at line 83 of file gnunet-dht-put.c.
|
static |
The data to insert into the dht.
Definition at line 88 of file gnunet-dht-put.c.