GNUnet 0.22.2
gnunet-dht-put.c File Reference

search for data in DHT More...

#include "platform.h"
#include "gnunet_dht_service.h"
Include dependency graph for gnunet-dht-put.c:

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_Handledht_handle
 Handle to the DHT. More...
 
static const struct GNUNET_CONFIGURATION_Handlecfg
 Global handle of the configuration. More...
 
static int ret
 Global status value. More...
 
static char * data
 The data to insert into the dht. More...
 

Detailed Description

search for data in DHT

Author
Christian Grothoff
Nathan Evans

Definition in file gnunet-dht-put.c.

Function Documentation

◆ shutdown_task()

static void shutdown_task ( void *  cls)
static

Definition at line 92 of file gnunet-dht-put.c.

93{
94 if (NULL != dht_handle)
95 {
97 dht_handle = NULL;
98 }
99}
static struct GNUNET_DHT_Handle * dht_handle
Handle to the DHT.
void GNUNET_DHT_disconnect(struct GNUNET_DHT_Handle *handle)
Shutdown connection with the DHT service.
Definition: dht_api.c:1053

References dht_handle, and GNUNET_DHT_disconnect().

Referenced by message_sent_cont().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ message_sent_cont()

static void message_sent_cont ( void *  cls)
static

Signature of the main function of a task.

Parameters
clsclosure

Definition at line 108 of file gnunet-dht-put.c.

109{
111}
static void shutdown_task(void *cls)
struct GNUNET_SCHEDULER_Task * GNUNET_SCHEDULER_add_now(GNUNET_SCHEDULER_TaskCallback task, void *task_cls)
Schedule a new task to be run as soon as possible.
Definition: scheduler.c:1304

References GNUNET_SCHEDULER_add_now(), and shutdown_task().

Referenced by run().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ run()

static void run ( void *  cls,
char *const *  args,
const char *  cfgfile,
const struct GNUNET_CONFIGURATION_Handle c 
)
static

Main function that will be run by the scheduler.

Parameters
clsclosure
argsremaining command-line arguments
cfgfilename of the configuration file used (for saving, can be NULL!)
cconfiguration

Definition at line 123 of file gnunet-dht-put.c.

127{
129
130 cfg = c;
131 if ((NULL == query_key) || (NULL == data))
132 {
133 fprintf (stderr, "%s", _ ("Must provide KEY and DATA for DHT put!\n"));
134 ret = 1;
135 return;
136 }
137
138 if (NULL == (dht_handle = GNUNET_DHT_connect (cfg, 1)))
139 {
140 fprintf (stderr, _ ("Could not connect to DHT service!\n"));
141 ret = 1;
142 return;
143 }
144 if (GNUNET_BLOCK_TYPE_ANY == query_type) /* Type of data not set */
146
148
149 if (verbose)
150 fprintf (stderr,
151 _ ("Issuing put request for `%s' with data `%s'!\n"),
152 query_key,
153 data);
157 if (record_route)
160 &key,
162 ro,
164 strlen (data),
165 data,
168 NULL);
169}
static unsigned int query_type
The type of the query.
static unsigned int verbose
Be verbose.
static const struct GNUNET_CONFIGURATION_Handle * cfg
Global handle of the configuration.
static void message_sent_cont(void *cls)
Signature of the main function of a task.
static int ret
Global status value.
static char * query_key
The key for the query.
static char * data
The data to insert into the dht.
static unsigned int replication
Desired replication level.
static int demultixplex_everywhere
Use #GNUNET_DHT_DEMULTIPLEX_EVERYWHERE.
struct GNUNET_HashCode key
The key used in the DHT.
static int record_route
Use GNUNET_DHT_RO_RECORD_ROUTE.
static struct GNUNET_TIME_Relative expiration
User supplied expiration value.
@ GNUNET_BLOCK_TYPE_TEST
Block for testing.
@ GNUNET_BLOCK_TYPE_ANY
Identifier for any block.
GNUNET_DHT_RouteOption
Options for routing.
struct GNUNET_DHT_PutHandle * GNUNET_DHT_put(struct GNUNET_DHT_Handle *handle, const struct GNUNET_HashCode *key, uint32_t desired_replication_level, enum GNUNET_DHT_RouteOption options, enum GNUNET_BLOCK_Type type, size_t size, const void *data, struct GNUNET_TIME_Absolute exp, GNUNET_SCHEDULER_TaskCallback cont, void *cont_cls)
Perform a PUT operation storing data in the DHT.
Definition: dht_api.c:1081
struct GNUNET_DHT_Handle * GNUNET_DHT_connect(const struct GNUNET_CONFIGURATION_Handle *cfg, unsigned int ht_len)
Initialize the connection with the DHT service.
Definition: dht_api.c:1030
@ GNUNET_DHT_RO_NONE
Default.
@ GNUNET_DHT_RO_RECORD_ROUTE
We should keep track of the route that the message took in the P2P network.
@ GNUNET_DHT_RO_DEMULTIPLEX_EVERYWHERE
Each peer along the way should process the request (otherwise only peers locally closest to the key w...
void GNUNET_CRYPTO_hash(const void *block, size_t size, struct GNUNET_HashCode *ret)
Compute hash of a given block.
Definition: crypto_hash.c:41
struct GNUNET_TIME_Absolute GNUNET_TIME_relative_to_absolute(struct GNUNET_TIME_Relative rel)
Convert relative time to an absolute time in the future.
Definition: time.c:316
#define _(String)
GNU gettext support macro.
Definition: platform.h:179

References _, cfg, data, demultixplex_everywhere, dht_handle, 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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ main()

int main ( int  argc,
char *const *  argv 
)

Entry point for gnunet-dht-put.

Parameters
argcnumber of arguments from the command line
argvcommand line arguments
Returns
0 ok, 1 on error

Definition at line 180 of file gnunet-dht-put.c.

181{
184 'd',
185 "data",
186 "DATA",
188 "the data to insert under the key"),
189 &data),
191 'e',
192 "expiration",
193 "EXPIRATION",
194 gettext_noop ("how long to store this entry in the dht (in seconds)"),
195 &expiration),
197 'k',
198 "key",
199 "KEY",
200 gettext_noop ("the query key"),
201 &query_key),
203 'x',
204 "demultiplex",
206 "use DHT's demultiplex everywhere option"),
209 'r',
210 "replication",
211 "LEVEL",
212 gettext_noop ("how many replicas to create"),
213 &replication),
215 'R',
216 "record",
217 gettext_noop ("use DHT's record route option"),
218 &record_route),
220 't',
221 "type",
222 "TYPE",
223 gettext_noop ("the type to insert data as"),
224 &query_type),
227 };
228
229
231 ret = (GNUNET_OK ==
234 argc,
235 argv,
236 "gnunet-dht-put",
238 "Issue a PUT request to the GNUnet DHT insert DATA under KEY."),
239 options,
240 &run,
241 NULL))
242 ? ret
243 : 1;
244 return ret;
245}
struct GNUNET_GETOPT_CommandLineOption GNUNET_GETOPT_OPTION_END
Definition: 002.c:13
struct GNUNET_GETOPT_CommandLineOption options[]
Definition: 002.c:5
#define gettext_noop(String)
Definition: gettext.h:74
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.
struct GNUNET_GETOPT_CommandLineOption GNUNET_GETOPT_option_uint(char shortName, const char *name, const char *argumentHelp, const char *description, unsigned int *val)
Allow user to specify an unsigned int.
struct GNUNET_GETOPT_CommandLineOption GNUNET_GETOPT_option_relative_time(char shortName, const char *name, const char *argumentHelp, const char *description, struct GNUNET_TIME_Relative *val)
Allow user to specify a struct GNUNET_TIME_Relative (using human-readable "fancy" time).
struct GNUNET_GETOPT_CommandLineOption GNUNET_GETOPT_option_verbose(unsigned int *level)
Define the '-V' verbosity option.
struct GNUNET_GETOPT_CommandLineOption GNUNET_GETOPT_option_flag(char shortName, const char *name, const char *description, int *val)
Allow user to specify a flag (which internally means setting an integer to 1/GNUNET_YES/GNUNET_OK.
struct GNUNET_GETOPT_CommandLineOption GNUNET_GETOPT_option_string(char shortName, const char *name, const char *argumentHelp, const char *description, char **str)
Allow user to specify a string.
@ GNUNET_OK
const struct GNUNET_OS_ProjectData * GNUNET_OS_project_data_gnunet(void)
Return default project data used by 'libgnunetutil' for GNUnet.
enum GNUNET_GenericReturnValue GNUNET_PROGRAM_run(const struct GNUNET_OS_ProjectData *pd, int argc, char *const *argv, const char *binaryName, const char *binaryHelp, const struct GNUNET_GETOPT_CommandLineOption *options, GNUNET_PROGRAM_Main task, void *task_cls)
Run a standard GNUnet command startup sequence (initialize loggers and configuration,...
Definition: program.c:407
#define GNUNET_TIME_UNIT_HOURS
One hour.
Definition of a command line option.

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_OS_project_data_gnunet(), GNUNET_PROGRAM_run(), GNUNET_TIME_UNIT_HOURS, options, query_key, query_type, record_route, replication, ret, run(), and verbose.

Here is the call graph for this function:

Variable Documentation

◆ query_type

unsigned int query_type
static

The type of the query.

Definition at line 32 of file gnunet-dht-put.c.

Referenced by main(), and run().

◆ key

struct GNUNET_HashCode key

The key used in the DHT.

Definition at line 37 of file gnunet-dht-put.c.

Referenced by add_barrier(), add_file(), add_get_request_to_pending(), add_key_to_bloomfilter(), add_known_to_bloom(), add_to_meta_counter(), allocate_v4_address(), allocate_v6_address(), attr_in_claims_request(), block_create2(), block_create_ecdsa(), block_create_eddsa(), block_decrypt_ecdsa(), block_decrypt_eddsa(), block_plugin_dht_get_key(), block_plugin_fs_get_key(), block_plugin_gns_get_key(), block_plugin_regex_get_key(), block_plugin_revocation_get_key(), block_plugin_test_get_key(), block_sign_ecdsa(), block_sign_eddsa(), build_result_set(), call_iterator(), change_srv_handle_member_id(), channel_destroy_iterator(), check_and_remove_pending_reversal(), check_edge(), check_room_initial_key(), check_signature_identity(), check_unique(), clean_request(), close_files_iter(), close_handle_room(), close_service_room(), close_srv_handle_room(), collector(), con_val_iter(), connect_tunnel(), consume_fail(), consume_ticket(), convert_messenger_key_to_port(), create_contact(), create_handle_member_id(), create_message_join(), create_message_key(), create_randomized_element_iterator(), create_response(), create_room(), create_srv_room(), create_target(), decode_and_send(), decrypt_message(), delete_linked_hash(), delete_skipped_key(), dequeue_message_from_room(), derive_ublock_encryption_key(), destroy_it(), dht_get_string_accept_handler(), dht_get_string_handler(), disconnect_and_free_peer_entry(), dispatch_job(), dispatch_job_monitor(), dns_string_to_value(), do_skip(), dv_decrypt(), dv_encrypt(), dv_hmac(), dv_key_clean(), dv_setup_key_state_from_km(), ecdsa_symmetric_decrypt(), ecdsa_symmetric_encrypt(), eddsa_priv_to_hpke_key(), eddsa_pub_to_hpke_key(), eddsa_symmetric_decrypt(), eddsa_symmetric_encrypt(), ego_callback(), ego_get_all(), ego_get_response(), encapsulate_for_dv(), encrypt_message(), enqueue_message_to_room(), entry_handle_room_at(), entry_service_room(), entry_srv_handle_room(), env_delete_notify(), execute_get(), expire_blocks(), expired_processor(), find_by_message_uuid(), find_closest(), find_entry(), find_list_handle_by_member(), find_target(), for_matching_monitors(), free_channel_state(), free_ego(), free_pending_ack_cb(), free_reassembly_cb(), free_request_it(), free_service_record(), free_session_helper(), GDS_am_closest_peer(), GDS_CLIENTS_process_get(), GDS_DATACACHE_get_closest(), GDS_DATACACHE_handle_get(), GDS_NEIGHBOURS_handle_get(), GDS_ROUTING_add(), get_any(), get_callback(), get_cb(), get_channel_key_from_ips(), get_connection_delete_it(), get_context_from_member(), get_destination_key_from_ip(), get_gns_cont(), get_handle_contact(), get_handle_member_session(), get_handle_room(), get_ibf_key(), get_iv_key(), get_lt_delete_it(), get_peer_delete_it(), get_redirect_state(), get_resp_callback(), get_service_room(), get_srv_handle_member_id(), get_stream_delete_it(), get_target_peers(), get_typed(), get_url_parameter_copy(), GNR_derive_block_aes_key(), GNR_derive_block_xsalsa_key(), GNUNET_BLOCK_get_key(), GNUNET_CONTAINER_multihashmap32_contains(), GNUNET_CONTAINER_multihashmap32_contains_value(), GNUNET_CONTAINER_multihashmap32_get(), GNUNET_CONTAINER_multihashmap32_get_multiple(), GNUNET_CONTAINER_multihashmap32_iterator_next(), GNUNET_CONTAINER_multihashmap32_put(), GNUNET_CONTAINER_multihashmap32_remove(), GNUNET_CONTAINER_multihashmap32_remove_all(), GNUNET_CONTAINER_multihashmap_contains(), GNUNET_CONTAINER_multihashmap_contains_value(), GNUNET_CONTAINER_multihashmap_get(), GNUNET_CONTAINER_multihashmap_get_multiple(), GNUNET_CONTAINER_multihashmap_iterator_next(), GNUNET_CONTAINER_multihashmap_put(), GNUNET_CONTAINER_multihashmap_remove(), GNUNET_CONTAINER_multihashmap_remove_all(), GNUNET_CONTAINER_multipeermap_contains(), GNUNET_CONTAINER_multipeermap_contains_value(), GNUNET_CONTAINER_multipeermap_get(), GNUNET_CONTAINER_multipeermap_get_multiple(), GNUNET_CONTAINER_multipeermap_iterator_next(), GNUNET_CONTAINER_multipeermap_put(), GNUNET_CONTAINER_multipeermap_remove(), GNUNET_CONTAINER_multipeermap_remove_all(), GNUNET_CONTAINER_multishortmap_contains(), GNUNET_CONTAINER_multishortmap_contains_value(), GNUNET_CONTAINER_multishortmap_get(), GNUNET_CONTAINER_multishortmap_get_multiple(), GNUNET_CONTAINER_multishortmap_iterator_next(), GNUNET_CONTAINER_multishortmap_put(), GNUNET_CONTAINER_multishortmap_remove(), GNUNET_CONTAINER_multishortmap_remove_all(), GNUNET_CONTAINER_multiuuidmap_contains(), GNUNET_CONTAINER_multiuuidmap_contains_value(), GNUNET_CONTAINER_multiuuidmap_get(), GNUNET_CONTAINER_multiuuidmap_get_multiple(), GNUNET_CONTAINER_multiuuidmap_iterator_next(), GNUNET_CONTAINER_multiuuidmap_put(), GNUNET_CONTAINER_multiuuidmap_remove(), GNUNET_CONTAINER_multiuuidmap_remove_all(), GNUNET_CRYPTO_ecc_dlog(), GNUNET_CRYPTO_ecc_dlog_prepare(), GNUNET_CRYPTO_ecdsa_sign_derived(), GNUNET_CRYPTO_hmac(), GNUNET_CRYPTO_hmac_derive_key(), GNUNET_CRYPTO_hmac_derive_key_v(), GNUNET_CRYPTO_hmac_raw(), GNUNET_CRYPTO_key_get_public(), GNUNET_CRYPTO_private_key_clear(), GNUNET_CRYPTO_private_key_from_string(), GNUNET_CRYPTO_private_key_get_length(), GNUNET_CRYPTO_private_key_to_string(), GNUNET_CRYPTO_public_key_from_string(), GNUNET_CRYPTO_public_key_get_length(), GNUNET_CRYPTO_public_key_to_string(), GNUNET_CRYPTO_read_private_key_from_buffer(), GNUNET_CRYPTO_read_public_key_from_buffer(), GNUNET_CRYPTO_rsa_private_key_decode(), GNUNET_CRYPTO_rsa_private_key_dup(), GNUNET_CRYPTO_rsa_private_key_encode(), GNUNET_CRYPTO_rsa_private_key_free(), GNUNET_CRYPTO_rsa_public_key_check(), GNUNET_CRYPTO_rsa_public_key_decode(), GNUNET_CRYPTO_rsa_public_key_dup(), GNUNET_CRYPTO_rsa_public_key_encode(), GNUNET_CRYPTO_rsa_public_key_free(), GNUNET_CRYPTO_rsa_public_key_hash(), GNUNET_CRYPTO_rsa_public_key_len(), GNUNET_CRYPTO_rsa_sign_blinded(), GNUNET_CRYPTO_rsa_sign_fdh(), GNUNET_CRYPTO_symmetric_create_session_key(), GNUNET_CRYPTO_write_private_key_to_buffer(), GNUNET_CRYPTO_write_public_key_to_buffer(), GNUNET_DATACACHE_get(), GNUNET_DATACACHE_get_closest(), GNUNET_DATASTORE_get_key(), GNUNET_DATASTORE_put(), GNUNET_DATASTORE_remove(), GNUNET_DHT_get_start(), GNUNET_DHT_monitor_start(), GNUNET_DHT_put(), GNUNET_FS_handle_on_demand_block(), GNUNET_FS_uri_to_key(), GNUNET_GNSRECORD_block_calculate_size(), GNUNET_GNSRECORD_block_create(), GNUNET_GNSRECORD_block_sign(), GNUNET_GNSRECORD_data_from_identity(), GNUNET_GNSRECORD_identity_from_data(), GNUNET_GNSRECORD_pow_init(), GNUNET_MESSENGER_connect(), GNUNET_MESSENGER_enter_room(), GNUNET_MESSENGER_open_room(), GNUNET_MESSENGER_set_key(), GNUNET_PEERSTORE_iteration_start(), GNUNET_PEERSTORE_monitor_start(), GNUNET_PEERSTORE_store(), GNUNET_REVOCATION_query(), GNUNET_uri_parse_query(), handle_ack(), handle_ack_by_sender(), handle_client_insert(), handle_client_redirect_to_ip(), handle_client_redirect_to_service(), handle_datastore_reply(), handle_dht_reply(), handle_dht_response(), handle_dv_box(), handle_member_id(), handle_miss_message(), handle_record(), handle_recv_message(), handle_room_close(), handle_room_entry(), handle_room_messages(), handle_room_open(), handle_room_sync(), handle_send_message(), hash_pkey_and_label(), header_iterator(), heap_plugin_get(), heap_plugin_get_closest(), heap_plugin_get_key(), heap_plugin_put(), heap_plugin_remove_key(), ibf_get_indices(), ibf_hashcode_from_key(), ibf_insert(), ibf_insert_into(), ibf_remove(), idx_of(), initialize_handle_via_key(), insert_iterator(), inspect_attrs(), is_srv_handle_routing(), iter_hashcodes(), iterate_close_rooms(), iterate_copy_history(), iterate_flag_for_cleanup_discourse_message(), iterate_load_next_session(), iterate_message_control(), iterate_next_member_ids(), iterate_reachables(), iterate_save_entries(), iterate_save_links(), iterate_save_member_session_history_hentries(), iterate_save_messages(), iterate_save_operations(), iterate_save_session(), iterate_send_key_to_room(), iterate_zones(), iterateBits(), join_room_run(), jwt_parse_attributes(), load_key_from_file(), load_member_session(), lookup_diff(), lookup_rfn(), lookup_set(), lookup_task(), main(), maint_child_death(), message_token(), messenger_string_to_value(), messenger_value_to_string(), migrate_and_drop_keywords(), migrate_and_drop_metadata(), move_to_pending(), move_to_queue(), mq_init(), namestore_get(), neighbour_delete(), notify_connect(), notify_srv_handle_member_id(), notify_srv_handle_message(), ns_lookup_result_cb(), on_ego_lookup(), on_identity(), on_message_cb(), open_handle_room(), open_service_room(), open_srv_handle_room(), open_srv_room(), peermap_clear_iterator(), PEERSTORE_create_record_mq_envelope(), PEERSTORE_hash_key(), peerstore_sqlite_delete_records(), peerstore_sqlite_iterate_records(), peerstore_sqlite_store_record(), pending_reversal_timeout(), pending_reversals_delete_it(), post_data_iter(), postgres_plugin_del(), postgres_plugin_get(), postgres_plugin_get_closest(), postgres_plugin_get_key(), postgres_plugin_put(), postgres_plugin_remove_key(), print_edge(), private_key_create(), process_client_result(), process_dht_put_content(), process_kblock_for_unindex(), process_keys(), process_ksk_result(), process_local_reply(), process_migration_content(), process_reply(), process_result(), process_result_with_request(), process_sks_result(), put_callback(), put_cb(), put_continuation(), quota_processor(), REGEX_BLOCK_check(), REGEX_BLOCK_check_proof(), REGEX_BLOCK_get_key(), regex_edge_iterator(), regex_find_path(), REGEX_INTERNAL_get_first_key(), REGEX_INTERNAL_search(), regex_iterator(), regex_result_iterator(), register_hashcode(), remove_all(), remove_by_unique_id(), remove_continuation(), repl_proc(), return_value(), revalidate_map_it(), route_packet(), rsa_sign_mpi(), run(), schedule_current_round(), select_peer(), send_enter_room(), send_full_element_iterator(), send_message_to_room(), send_open_room(), send_srv_handle_message(), set_attributes_from_idtoken(), set_handle_key(), set_srv_handle_key(), setup_cipher(), setup_state_record(), sign_message(), sign_pow(), sign_pow_identity(), sqlite_plugin_get(), sqlite_plugin_get_closest(), sqlite_plugin_get_key(), sqlite_plugin_get_keys(), sqlite_plugin_put(), sqlite_plugin_remove_key(), store_all_states(), store_and_free_entries(), store_skipped_key(), strata_estimator_insert(), strata_estimator_remove(), sync_srv_handle_messages(), t_ax_hmac_hash(), t_hmac(), t_hmac_derive_key(), template_plugin_put(), template_plugin_remove_key(), transcribe_message(), transmit_item(), try_old_ax_keys(), try_top_down_reconstruction(), update_config_sections(), update_flood_times(), url_iterator(), verify_message(), and zone_to_name().

◆ query_key

char* query_key
static

The key for the query.

Definition at line 42 of file gnunet-dht-put.c.

Referenced by main(), and run().

◆ expiration

◆ replication

unsigned int replication = 5
static

Desired replication level.

Definition at line 52 of file gnunet-dht-put.c.

Referenced by main(), and run().

◆ verbose

unsigned int verbose
static

Be verbose.

Definition at line 57 of file gnunet-dht-put.c.

Referenced by main(), and run().

◆ demultixplex_everywhere

int demultixplex_everywhere
static

Use #GNUNET_DHT_DEMULTIPLEX_EVERYWHERE.

Definition at line 62 of file gnunet-dht-put.c.

Referenced by main(), and run().

◆ record_route

int record_route
static

Use GNUNET_DHT_RO_RECORD_ROUTE.

Definition at line 67 of file gnunet-dht-put.c.

Referenced by main(), and run().

◆ dht_handle

struct GNUNET_DHT_Handle* dht_handle
static

Handle to the DHT.

Definition at line 72 of file gnunet-dht-put.c.

Referenced by run(), and shutdown_task().

◆ cfg

const struct GNUNET_CONFIGURATION_Handle* cfg
static

Global handle of the configuration.

Definition at line 78 of file gnunet-dht-put.c.

Referenced by run().

◆ ret

int ret
static

Global status value.

Definition at line 83 of file gnunet-dht-put.c.

Referenced by main(), and run().

◆ data

char* data
static

The data to insert into the dht.

Definition at line 88 of file gnunet-dht-put.c.

Referenced by abd_string_to_value(), abd_value_to_string(), add_dns_result(), add_host(), add_record(), add_to_meta_counter(), basic_string_to_value(), basic_value_to_string(), bind_abstime(), bind_fixed_blob(), bind_nbotime(), bind_rsa_pub(), bind_rsa_sig(), bind_string(), bind_u16(), bind_u32(), bind_u64(), buffer_append(), buffer_init(), cadet_reply_proc(), calc_checksum(), check_pkey(), check_tcp_back(), check_tcp_data(), checkvec(), cleanup_recordinfo(), client_response_handler(), collect_tickets_cb(), connection_feed_data(), connection_on_read(), consistency_iter(), conversation_string_to_value(), conversation_value_to_string(), copy_from_reader(), count_and_separate_strings(), create_string_array(), d2j(), data_to_ecdsa_value(), decoder_ogg_pad_added(), decrypt_block_with_keyword(), decrypt_message(), dht_get_id_handler(), dht_get_string_accept_handler(), dht_get_string_handler(), DID_resolve_gns_lookup_cb(), display_records_from_block(), dns_string_to_value(), dns_value_to_string(), do_read(), do_shutdown(), do_udp_read(), dv_hmac(), ego_sign_data(), ego_sign_data_cb(), encrypt_message(), expect_data_dynamic(), expect_data_fixed(), extract_array_generic(), extract_result_cb(), filter_tickets_cb(), find_full_data(), forward_resolution(), full_recursive_download(), gather_uri_data(), GDS_helper_make_put_message(), GDS_helper_sign_path(), GDS_NEIGHBOURS_handle_reply(), get_any(), get_cb(), get_records_and_call_iterator(), get_resp_callback(), get_result_iterator(), get_topo_string_from_file(), get_typed(), gns_string_to_value(), gns_value_to_string(), GNUNET_ABD_delegate_deserialize(), GNUNET_ABD_delegate_serialize(), GNUNET_buffer_write(), GNUNET_buffer_write_data_encoded(), GNUNET_CONTAINER_bloomfilter_get_raw_data(), GNUNET_CONTAINER_bloomfilter_init(), GNUNET_CONTAINER_bloomfilter_or(), GNUNET_CRYPTO_crc8_n(), GNUNET_CRYPTO_ecdsa_sign_(), GNUNET_CRYPTO_ecdsa_verify_(), GNUNET_CRYPTO_eddsa_sign_raw(), GNUNET_CRYPTO_mpi_scan_unsigned(), GNUNET_CRYPTO_rsa_blind(), GNUNET_CRYPTO_rsa_public_key_decode(), GNUNET_CRYPTO_rsa_signature_decode(), GNUNET_CRYPTO_rsa_verify(), GNUNET_DATASTORE_put(), GNUNET_DATASTORE_remove(), GNUNET_DHT_put(), GNUNET_DHT_verify_path(), GNUNET_DNSPARSER_bin_to_hex(), GNUNET_DNSPARSER_hex_to_bin(), GNUNET_FS_data_reader_copy_(), GNUNET_FS_directory_builder_add(), GNUNET_FS_directory_builder_finish(), GNUNET_FS_directory_list_contents(), GNUNET_FS_file_information_create_from_data(), GNUNET_FS_handle_on_demand_block(), GNUNET_FS_meta_data_delete(), GNUNET_FS_meta_data_deserialize(), GNUNET_FS_meta_data_insert(), GNUNET_GNSRECORD_data_from_identity(), GNUNET_GNSRECORD_identity_from_data(), GNUNET_GNSRECORD_JSON_from_gnsrecord(), GNUNET_GNSRECORD_records_deserialize(), GNUNET_GNSRECORD_records_get_size(), GNUNET_GNSRECORD_records_serialize(), GNUNET_GNSRECORD_string_to_value(), GNUNET_GNSRECORD_value_to_string(), GNUNET_hex2b(), GNUNET_JSON_from_data(), GNUNET_JSON_from_data64(), GNUNET_LOAD_update(), GNUNET_NAT_stun_handle_packet(), GNUNET_NAT_stun_handle_packet_(), GNUNET_RECLAIM_attribute_deserialize(), GNUNET_RECLAIM_attribute_list_add(), GNUNET_RECLAIM_attribute_list_deserialize(), GNUNET_RECLAIM_attribute_new(), GNUNET_RECLAIM_attribute_string_to_value(), GNUNET_RECLAIM_attribute_value_to_string(), GNUNET_RECLAIM_credential_deserialize(), GNUNET_RECLAIM_credential_list_deserialize(), GNUNET_RECLAIM_credential_new(), GNUNET_RECLAIM_credential_string_to_value(), GNUNET_RECLAIM_credential_value_to_string(), GNUNET_RECLAIM_presentation_deserialize(), GNUNET_RECLAIM_presentation_list_deserialize(), GNUNET_RECLAIM_presentation_new(), GNUNET_RECLAIM_presentation_string_to_value(), GNUNET_RECLAIM_presentation_value_to_string(), GNUNET_REST_create_response(), GNUNET_SECRETSHARING_share_read(), GNUNET_SQ_bind(), GNUNET_STRINGS_base64_decode(), GNUNET_STRINGS_base64_encode(), GNUNET_STRINGS_base64url_decode(), GNUNET_STRINGS_data_to_string(), GNUNET_STRINGS_string_to_data_alloc(), GNUNET_STRINGS_urldecode(), GNUNET_STRINGS_urlencode(), GNUNET_try_compression(), handle_client_insert(), handle_datastore_reply(), handle_delegate_collection_cb(), handle_dht_p2p_put(), handle_dht_p2p_result(), handle_dht_reply(), handle_dht_response(), handle_dht_result(), handle_gns_resolution_result(), handle_p2p_reply(), handle_results(), handle_tcp_back(), handle_tcp_data(), heap_plugin_put(), heap_plugin_remove_key(), http_recv_data_cb(), issue_ticket(), item_printer(), iter_finished(), jwt_get_expiration(), jwt_get_issuer(), jwt_parse_attributes(), jwt_string_to_value(), jwt_value_to_string(), load_debug(), load_search_strings(), lookup_authz_cb(), lookup_redirect_uri_result(), main(), make_file(), match_full_data(), merge_helper(), merge_with_nick_records(), messenger_string_to_value(), messenger_value_to_string(), meta_printer(), mpi_to_sexp(), namestore_postgres_store_records(), namestore_sqlite_store_records(), normalize_metadata(), ogg_pad_added(), output_vectors(), pabc_get_expiration(), pabc_get_issuer(), pabc_parse_attributes(), pabc_string_to_value(), pabc_value_to_string(), parse(), parse_attr(), parse_credential(), parse_gnsrecordobject(), parse_record(), parse_record_data(), parse_result_call_iterator(), parse_variable_data(), parsehex(), play(), post_data_iter(), postgres_plugin_put(), postgres_plugin_remove_key(), process_client_result(), process_dht_put_content(), process_kblock_for_unindex(), process_local_reply(), process_lookup_result(), process_migration_content(), process_parallel_lookup_result(), process_result(), process_tickets(), put_callback(), put_cb(), qconv_abs_time(), qconv_array(), qconv_blind_sign_priv(), qconv_blind_sign_pub(), qconv_blinded_sig(), qconv_fixed(), qconv_int64(), qconv_null(), qconv_rel_time(), qconv_rsa_public_key(), qconv_rsa_signature(), qconv_uint16(), qconv_uint32(), qconv_uint64(), qconv_unblinded_sig(), record(), recursive_gns2dns_resolution(), recv_stream_data_cb(), repl_proc(), reply_to_dns(), result_processor(), revoke_attrs_cb(), rsa_sign_mpi(), run(), run_zbar(), rvk_move_attr_cb(), rvk_ticket_update(), send_packet(), server_read_pkt(), sqlite_plugin_del(), sqlite_plugin_get_closest(), sqlite_plugin_put(), sqlite_plugin_remove_key(), stdin_receiver(), store_and_free_entries(), stream_read_callback(), stream_send_data(), string_to_value(), submit_post_request(), test_stun_packet(), transmit_call_audio(), transmit_item(), transmit_phone_audio(), try_match_block(), try_reconnect(), try_send_tcp(), try_send_udp(), unindex_process(), update_tickets(), value_to_string(), and write_message().