#include "platform.h"
#include "gnunet_util_lib.h"
#include "gnunet_resolver_service.h"
#include "gnunet_protocols.h"
#include "gnunet_transport_service.h"
Go to the source code of this file.
Data Structures | |
struct | ValidationResolutionContext |
Context to store name resolutions for validation. More... | |
struct | MonitoredPeer |
Struct to store information about peers in monitor mode. More... | |
struct | PeerResolutionContext |
Context to store name resolutions for validation. More... | |
struct | PluginMonitorAddress |
Context for address resolution by plugin_monitoring_cb(). More... | |
Macros | |
#define | RESOLUTION_TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 30) |
Timeout for a name resolution. More... | |
#define | OP_TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 30) |
Timeout for an operation. More... | |
#define | BLOCKSIZE 4 |
Benchmarking block size in KB. More... | |
Functions | |
static int | destroy_it (void *cls, const struct GNUNET_PeerIdentity *key, void *value) |
Function called to release data stored in the monitored_peers map. More... | |
static void | shutdown_task (void *cls) |
Task run in monitor mode when the user presses CTRL-C to abort. More... | |
static void | operation_timeout (void *cls) |
We are done, shut down. More... | |
static void | do_send (void *cls) |
Function called to notify a client about the socket begin ready to queue more data. More... | |
static void * | notify_connect (void *cls, const struct GNUNET_PeerIdentity *peer, struct GNUNET_MQ_Handle *mq) |
Function called to notify transport users that another peer connected to us. More... | |
static void | notify_disconnect (void *cls, const struct GNUNET_PeerIdentity *peer, void *internal_cls) |
Function called to notify transport users that another peer disconnected from us. More... | |
static void * | monitor_notify_connect (void *cls, const struct GNUNET_PeerIdentity *peer, struct GNUNET_MQ_Handle *mq) |
Function called to notify transport users that another peer connected to us. More... | |
static void | monitor_notify_disconnect (void *cls, const struct GNUNET_PeerIdentity *peer, void *internal_cls) |
Function called to notify transport users that another peer disconnected from us. More... | |
static int | check_dummy (void *cls, const struct GNUNET_MessageHeader *message) |
Function called by the transport for each received message. More... | |
static void | handle_dummy (void *cls, const struct GNUNET_MessageHeader *message) |
Function called by the transport for each received message. More... | |
static void | resolve_peer_address (const struct GNUNET_HELLO_Address *address, int numeric, enum GNUNET_TRANSPORT_PeerState state, struct GNUNET_TIME_Absolute state_timeout) |
Convert address to a printable format. More... | |
static void | print_info (const struct GNUNET_PeerIdentity *id, const char *transport, const char *addr, enum GNUNET_TRANSPORT_PeerState state, struct GNUNET_TIME_Absolute state_timeout) |
static void | process_peer_string (void *cls, const char *address, int res) |
Function called with a textual representation of an address. More... | |
static void | process_peer_iteration_cb (void *cls, const struct GNUNET_PeerIdentity *peer, const struct GNUNET_HELLO_Address *address, enum GNUNET_TRANSPORT_PeerState state, struct GNUNET_TIME_Absolute state_timeout) |
Function called with information about a peers during a one shot iteration. More... | |
static void | print_plugin_event_info (struct PluginMonitorAddress *addr, const struct GNUNET_TRANSPORT_SessionInfo *info) |
Print information about a plugin monitoring event. More... | |
static void | address_cb (void *cls, const char *address, int res) |
Function called with a textual representation of an address. More... | |
static void | plugin_monitoring_cb (void *cls, struct GNUNET_TRANSPORT_PluginSession *session, void **session_ctx, const struct GNUNET_TRANSPORT_SessionInfo *info) |
Function called by the plugin with information about the current sessions managed by the plugin (for monitoring). More... | |
static void | process_peer_monitoring_cb (void *cls, const struct GNUNET_PeerIdentity *peer, const struct GNUNET_HELLO_Address *address, enum GNUNET_TRANSPORT_PeerState state, struct GNUNET_TIME_Absolute state_timeout) |
Function called with information about a peers. More... | |
static int | blacklist_cb (void *cls, const struct GNUNET_PeerIdentity *cpid) |
Function called with the transport service checking if we want to blacklist a peer. More... | |
static void | run (void *cls, char *const *args, const char *cfgfile, const struct GNUNET_CONFIGURATION_Handle *mycfg) |
Main function that will be run by the scheduler. More... | |
int | main (int argc, char *const *argv) |
Variables | |
static struct GNUNET_TRANSPORT_CoreHandle * | handle |
Handle to transport service. More... | |
static struct GNUNET_CONFIGURATION_Handle * | cfg |
Configuration handle. More... | |
struct GNUNET_TRANSPORT_Blacklist * | blacklist |
Blacklisting handle. More... | |
static int | benchmark_send |
Option -s. More... | |
static int | benchmark_receive |
Option -b. More... | |
static int | iterate_connections |
Option -i. More... | |
static int | iterate_all |
Option -a. More... | |
static int | monitor_connects |
Option -c. More... | |
static int | monitor_connections |
Option -m. More... | |
static int | monitor_plugins |
Option -P. More... | |
static int | do_disconnect |
Option -D. More... | |
static int | numeric |
Option -n. More... | |
static int | ret |
Global return value (0 success). More... | |
static int | monitor_connect_counter |
Current number of connections in monitor mode. More... | |
static unsigned long long | traffic_received |
Number of bytes of traffic we received so far. More... | |
static unsigned long long | traffic_sent |
Number of bytes of traffic we sent so far. More... | |
static struct GNUNET_TIME_Absolute | start_time |
Starting time of transmitting/receiving data. More... | |
static struct GNUNET_CONTAINER_MultiPeerMap * | monitored_peers |
Map storing information about monitored peers. More... | |
static struct GNUNET_CONTAINER_MultiPeerMap * | monitored_plugins |
Map storing information about monitored plugins's sessions. More... | |
static struct GNUNET_TRANSPORT_PeerMonitoringContext * | pic |
Handle if we are monitoring peers at the transport level. More... | |
static struct GNUNET_TRANSPORT_PluginMonitor * | pm |
Handle if we are monitoring plugin session activity. More... | |
static struct GNUNET_PeerIdentity | pid |
Identity of the peer we transmit to / connect to. More... | |
static struct GNUNET_SCHEDULER_Task * | op_timeout |
Task for operation timeout. More... | |
static unsigned int | verbosity |
Selected level of verbosity. More... | |
struct GNUNET_OS_Process * | resolver |
Resolver process handle. More... | |
static unsigned int | address_resolutions |
Number of address resolutions pending. More... | |
static struct ValidationResolutionContext * | vc_head |
DLL: head of validation resolution entries. More... | |
static struct ValidationResolutionContext * | vc_tail |
DLL: tail of validation resolution entries. More... | |
static struct PeerResolutionContext * | rc_head |
DLL: head of resolution entries. More... | |
static struct PeerResolutionContext * | rc_tail |
DLL: head of resolution entries. More... | |
#define RESOLUTION_TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 30) |
Timeout for a name resolution.
Definition at line 36 of file gnunet-transport.c.
#define OP_TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 30) |
Timeout for an operation.
Definition at line 42 of file gnunet-transport.c.
#define BLOCKSIZE 4 |
Benchmarking block size in KB.
Definition at line 167 of file gnunet-transport.c.
|
static |
Function called to release data stored in the monitored_peers map.
cls | unused |
key | the peer identity |
value | a struct MonitoredPeer to release |
Definition at line 335 of file gnunet-transport.c.
References GNUNET_assert, GNUNET_CONTAINER_multipeermap_remove(), GNUNET_free, GNUNET_OK, key, m, monitored_peers, and value.
Referenced by shutdown_task().
|
static |
Task run in monitor mode when the user presses CTRL-C to abort.
Stops monitoring activity.
cls | NULL |
Definition at line 355 of file gnunet-transport.c.
References _, ValidationResolutionContext::addrcp, PeerResolutionContext::addrcp, ValidationResolutionContext::asc, PeerResolutionContext::asc, benchmark_receive, benchmark_send, blacklist, destroy_it(), duration, GNUNET_break, GNUNET_CONTAINER_DLL_remove, GNUNET_CONTAINER_multipeermap_destroy(), GNUNET_CONTAINER_multipeermap_iterate(), GNUNET_CONTAINER_multipeermap_size(), GNUNET_free, GNUNET_SCHEDULER_cancel(), GNUNET_STRINGS_relative_time_to_string(), GNUNET_TIME_absolute_get_duration(), GNUNET_TRANSPORT_core_disconnect(), GNUNET_YES, handle, monitored_peers, monitored_plugins, ValidationResolutionContext::next, PeerResolutionContext::next, op_timeout, pic, pm, rc_head, rc_tail, GNUNET_TIME_Relative::rel_value_us, ret, start_time, traffic_received, traffic_sent, ValidationResolutionContext::transport, PeerResolutionContext::transport, vc_head, and vc_tail.
Referenced by run().
|
static |
We are done, shut down.
Definition at line 446 of file gnunet-transport.c.
References _, PeerResolutionContext::addrcp, PeerResolutionContext::asc, benchmark_receive, benchmark_send, GNUNET_CONTAINER_DLL_remove, GNUNET_free, GNUNET_i2s(), GNUNET_i2s_full(), GNUNET_SCHEDULER_shutdown(), iterate_connections, PeerResolutionContext::next, op_timeout, pid, rc_head, rc_tail, ret, and PeerResolutionContext::transport.
Referenced by process_peer_iteration_cb(), process_peer_monitoring_cb(), and run().
|
static |
Function called to notify a client about the socket begin ready to queue more data.
Sends another message.
cls | closure with the message queue |
Definition at line 492 of file gnunet-transport.c.
References _, BLOCKSIZE, do_send(), env, GNUNET_MESSAGE_TYPE_DUMMY, GNUNET_MQ_msg_extra, GNUNET_MQ_notify_sent(), GNUNET_MQ_send(), m, mq, traffic_sent, and verbosity.
Referenced by do_send(), and notify_connect().
|
static |
Function called to notify transport users that another peer connected to us.
cls | closure |
peer | the peer that connected |
mq | message queue for sending to peer |
Definition at line 519 of file gnunet-transport.c.
References _, benchmark_send, BLOCKSIZE, do_send(), GNUNET_i2s(), GNUNET_SCHEDULER_cancel(), GNUNET_TIME_absolute_get(), mq, op_timeout, pid, ret, start_time, and verbosity.
Referenced by run().
|
static |
Function called to notify transport users that another peer disconnected from us.
cls | closure |
peer | the peer that disconnected |
internal_cls | what we returned from notify_connect() |
Definition at line 555 of file gnunet-transport.c.
References _, benchmark_send, GNUNET_i2s(), and pid.
Referenced by run().
|
static |
Function called to notify transport users that another peer connected to us.
cls | closure |
peer | the peer that connected |
mq | for sending messages to peer |
Definition at line 581 of file gnunet-transport.c.
References _, GNUNET_i2s(), GNUNET_STRINGS_absolute_time_to_string(), GNUNET_TIME_absolute_get(), and monitor_connect_counter.
Referenced by run().
|
static |
Function called to notify transport users that another peer disconnected from us.
cls | closure |
peer | the peer that disconnected |
internal_cls | what we returned from monitor_notify_connect() |
Definition at line 608 of file gnunet-transport.c.
References _, GNUNET_assert, GNUNET_i2s(), GNUNET_STRINGS_absolute_time_to_string(), GNUNET_TIME_absolute_get(), and monitor_connect_counter.
Referenced by run().
|
static |
Function called by the transport for each received message.
cls | closure |
message | the message |
Definition at line 635 of file gnunet-transport.c.
References GNUNET_OK.
|
static |
Function called by the transport for each received message.
cls | closure |
message | the message |
Definition at line 648 of file gnunet-transport.c.
References _, benchmark_receive, GNUNET_TIME_absolute_get(), GNUNET_MessageHeader::size, start_time, traffic_received, and verbosity.
|
static |
Convert address to a printable format.
Convert address to a printable format and print it together with the given state data.
address | the address |
numeric | GNUNET_YES to convert to numeric format, GNUNET_NO to try to use reverse DNS |
state | state the peer is in |
state_timeout | when will the peer's state expire |
Definition at line 816 of file gnunet-transport.c.
References PeerResolutionContext::addrcp, address, address_resolutions, PeerResolutionContext::asc, cfg, GNUNET_CONTAINER_DLL_insert, GNUNET_new, GNUNET_NO, GNUNET_strdup, numeric, PeerResolutionContext::printed, process_peer_string(), rc_head, rc_tail, RESOLUTION_TIMEOUT, state, PeerResolutionContext::state, PeerResolutionContext::state_timeout, and PeerResolutionContext::transport.
Referenced by process_peer_iteration_cb(), process_peer_monitoring_cb(), and process_peer_string().
|
static |
Definition at line 679 of file gnunet-transport.c.
References _, GNUNET_i2s(), GNUNET_STRINGS_absolute_time_to_string(), GNUNET_YES, iterate_all, iterate_connections, monitor_connections, state, and transport.
Referenced by process_peer_iteration_cb(), process_peer_monitoring_cb(), and process_peer_string().
|
static |
Function called with a textual representation of an address.
This function will be called several times with different possible textual representations, and a last time with address being NULL to signal the end of the iteration. Note that address NULL always is the last call, regardless of the value in res.
cls | closure |
address | NULL on end of iteration, otherwise 0-terminated printable UTF-8 string, in particular an empty string if res is GNUNET_NO |
res | result of the address to string conversion: if GNUNET_OK: conversion successful if GNUNET_NO: address was invalid (or not supported) if GNUNET_SYSERR: communication error (IPC error) |
Definition at line 726 of file gnunet-transport.c.
References PeerResolutionContext::addrcp, address, address_resolutions, PeerResolutionContext::asc, GNUNET_assert, GNUNET_CONTAINER_DLL_remove, GNUNET_free, GNUNET_i2s(), GNUNET_NO, GNUNET_OK, GNUNET_SCHEDULER_cancel(), GNUNET_SCHEDULER_shutdown(), GNUNET_SYSERR, GNUNET_YES, iterate_connections, numeric, op_timeout, print_info(), PeerResolutionContext::printed, rc_head, rc_tail, res, resolve_peer_address(), ret, PeerResolutionContext::state, PeerResolutionContext::state_timeout, and PeerResolutionContext::transport.
Referenced by resolve_peer_address().
|
static |
Function called with information about a peers during a one shot iteration.
cls | closure |
peer | identity of the peer, NULL for final callback when operation done |
address | binary address used to communicate with this peer, NULL on disconnect or when done |
state | current state this peer is in |
state_timeout | time out for the current state |
Definition at line 852 of file gnunet-transport.c.
References address, GNUNET_ERROR_TYPE_DEBUG, GNUNET_i2s(), GNUNET_log, GNUNET_NO, GNUNET_SCHEDULER_add_delayed(), GNUNET_SCHEDULER_cancel(), iterate_all, numeric, OP_TIMEOUT, op_timeout, operation_timeout(), pic, print_info(), resolve_peer_address(), state, and PeerResolutionContext::state_timeout.
Referenced by run().
|
static |
Print information about a plugin monitoring event.
addr | out internal context |
info | the monitoring information |
Definition at line 916 of file gnunet-transport.c.
References GNUNET_i2s(), GNUNET_STRINGS_absolute_time_to_string(), GNUNET_STRINGS_relative_time_to_string(), GNUNET_TIME_absolute_get_remaining(), GNUNET_YES, info, GNUNET_TIME_Relative::rel_value_us, state, and PluginMonitorAddress::str.
Referenced by address_cb(), and plugin_monitoring_cb().
|
static |
Function called with a textual representation of an address.
This function will be called several times with different possible textual representations, and a last time with address being NULL to signal the end of the iteration. Note that address NULL always is the last call, regardless of the value in res.
cls | closure |
address | NULL on end of iteration, otherwise 0-terminated printable UTF-8 string, in particular an empty string if res is GNUNET_NO |
res | result of the address to string conversion: if GNUNET_OK: conversion successful if GNUNET_NO: address was invalid (or not supported) if GNUNET_SYSERR: communication error (IPC error) |
Definition at line 987 of file gnunet-transport.c.
References address, PluginMonitorAddress::asc, GNUNET_strdup, print_plugin_event_info(), PluginMonitorAddress::si, and PluginMonitorAddress::str.
Referenced by plugin_monitoring_cb().
|
static |
Function called by the plugin with information about the current sessions managed by the plugin (for monitoring).
cls | closure (NULL) |
session | session handle this information is about, NULL to indicate that we are "in sync" (initial iteration complete) |
session_ctx | storage location where the application can store data; will point to NULL on #GNUNET_TRANSPORT_SS_INIT, and must be reset to NULL on #GNUNET_TRANSPORT_SS_DONE |
info | information about the state of the session, NULL if session is also NULL and we are merely signalling that the initial iteration is over; NULL with session being non-NULL if the monitor was being cancelled while sessions were active |
Definition at line 1021 of file gnunet-transport.c.
References address_cb(), PluginMonitorAddress::asc, cfg, GNUNET_free, GNUNET_new, GNUNET_TIME_UNIT_FOREVER_REL, info, numeric, pid, print_plugin_event_info(), PluginMonitorAddress::si, and PluginMonitorAddress::str.
Referenced by run().
|
static |
Function called with information about a peers.
cls | closure, NULL |
peer | identity of the peer, NULL for final callback when operation done |
address | binary address used to communicate with this peer, NULL on disconnect or when done |
state | current state this peer is in |
state_timeout | time out for the current state |
Definition at line 1090 of file gnunet-transport.c.
References _, GNUNET_TIME_Absolute::abs_value_us, address, GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_FAST, GNUNET_CONTAINER_multipeermap_get(), GNUNET_CONTAINER_multipeermap_put(), GNUNET_free, GNUNET_new, GNUNET_SCHEDULER_add_delayed(), GNUNET_SCHEDULER_cancel(), m, monitored_peers, numeric, OP_TIMEOUT, op_timeout, operation_timeout(), print_info(), resolve_peer_address(), state, and MonitoredPeer::state_timeout.
Referenced by run().
|
static |
Function called with the transport service checking if we want to blacklist a peer.
Return GNUNET_SYSERR for the peer that we should disconnect from.
cls | NULL |
cpid | peer to check blacklisting for |
Definition at line 1161 of file gnunet-transport.c.
References GNUNET_OK, GNUNET_SYSERR, and pid.
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!) |
mycfg | configuration |
Definition at line 1178 of file gnunet-transport.c.
References _, benchmark_receive, benchmark_send, blacklist, blacklist_cb(), cfg, do_disconnect, dummy, GNUNET_break, GNUNET_CONTAINER_multipeermap_create(), GNUNET_MESSAGE_TYPE_DUMMY, GNUNET_MQ_handler_end, GNUNET_MQ_hd_var_size, GNUNET_NO, GNUNET_SCHEDULER_add_delayed(), GNUNET_SCHEDULER_add_shutdown(), GNUNET_TIME_absolute_get(), GNUNET_TRANSPORT_core_connect(), GNUNET_YES, handle, handlers, iterate_connections, monitor_connect_counter, monitor_connections, monitor_connects, monitor_notify_connect(), monitor_notify_disconnect(), monitor_plugins, monitored_peers, monitored_plugins, notify_connect(), notify_disconnect(), OP_TIMEOUT, op_timeout, operation_timeout(), pic, pid, plugin_monitoring_cb(), pm, process_peer_iteration_cb(), process_peer_monitoring_cb(), ret, shutdown_task(), start_time, and verbosity.
Referenced by main().
int main | ( | int | argc, |
char *const * | argv | ||
) |
Definition at line 1359 of file gnunet-transport.c.
References benchmark_receive, benchmark_send, do_disconnect, gettext_noop, GNUNET_GETOPT_option_base32_auto, GNUNET_GETOPT_OPTION_END, GNUNET_GETOPT_option_flag(), GNUNET_GETOPT_option_verbose(), GNUNET_OK, GNUNET_PROGRAM_run(), iterate_all, iterate_connections, monitor_connections, monitor_connects, monitor_plugins, numeric, options, pid, res, ret, run(), and verbosity.
|
static |
Handle to transport service.
Definition at line 172 of file gnunet-transport.c.
Referenced by run(), and shutdown_task().
|
static |
Configuration handle.
Definition at line 177 of file gnunet-transport.c.
Referenced by plugin_monitoring_cb(), resolve_peer_address(), and run().
struct GNUNET_TRANSPORT_Blacklist* blacklist |
Blacklisting handle.
Definition at line 182 of file gnunet-transport.c.
Referenced by run(), and shutdown_task().
|
static |
Option -s.
Definition at line 187 of file gnunet-transport.c.
Referenced by main(), notify_connect(), notify_disconnect(), operation_timeout(), run(), and shutdown_task().
|
static |
Option -b.
Option -l.
Definition at line 192 of file gnunet-transport.c.
Referenced by handle_dummy(), main(), operation_timeout(), run(), and shutdown_task().
|
static |
Option -i.
Definition at line 202 of file gnunet-transport.c.
Referenced by main(), operation_timeout(), print_info(), process_peer_string(), and run().
|
static |
Option -a.
Definition at line 207 of file gnunet-transport.c.
Referenced by main(), print_info(), and process_peer_iteration_cb().
|
static |
|
static |
Option -m.
Definition at line 217 of file gnunet-transport.c.
Referenced by main(), print_info(), and run().
|
static |
|
static |
|
static |
Option -n.
Definition at line 232 of file gnunet-transport.c.
Referenced by main(), plugin_monitoring_cb(), process_peer_iteration_cb(), process_peer_monitoring_cb(), process_peer_string(), and resolve_peer_address().
|
static |
Global return value (0 success).
Definition at line 237 of file gnunet-transport.c.
Referenced by main(), notify_connect(), operation_timeout(), process_peer_string(), run(), and shutdown_task().
|
static |
Current number of connections in monitor mode.
Definition at line 242 of file gnunet-transport.c.
Referenced by monitor_notify_connect(), monitor_notify_disconnect(), and run().
|
static |
Number of bytes of traffic we received so far.
Definition at line 247 of file gnunet-transport.c.
Referenced by handle_dummy(), and shutdown_task().
|
static |
Number of bytes of traffic we sent so far.
Definition at line 252 of file gnunet-transport.c.
Referenced by do_send(), and shutdown_task().
|
static |
Starting time of transmitting/receiving data.
Definition at line 257 of file gnunet-transport.c.
Referenced by handle_dummy(), notify_connect(), run(), and shutdown_task().
|
static |
Map storing information about monitored peers.
Definition at line 262 of file gnunet-transport.c.
Referenced by destroy_it(), process_peer_monitoring_cb(), run(), and shutdown_task().
|
static |
Map storing information about monitored plugins's sessions.
Definition at line 267 of file gnunet-transport.c.
Referenced by run(), and shutdown_task().
|
static |
Handle if we are monitoring peers at the transport level.
Definition at line 272 of file gnunet-transport.c.
Referenced by process_peer_iteration_cb(), run(), and shutdown_task().
|
static |
Handle if we are monitoring plugin session activity.
Definition at line 277 of file gnunet-transport.c.
Referenced by check_next_attempt_tree(), check_vl_transmission(), client_disconnect_cb(), client_response_handler(), client_send_response(), completed_pending_message(), execute_delayed_mutations(), extract_box_cb(), forward_dv_box(), fragment_message(), free_fragment_tree(), free_pending_acknowledgement(), free_pending_message(), free_queue_entry(), free_virtual_link(), handle_client_mutation(), handle_client_send(), handle_p2p_reply(), harmonize_flight_round(), prepare_pending_acknowledgement(), proto_read_kx(), queue_send_msg(), reliability_box_message(), reorder_root_pm(), run(), send_msg_from_cache(), set_pending_message_uuid(), setup_fresh_ping(), shutdown_task(), transmit_on_queue(), try_connection_reversal(), and update_pm_next_attempt().
|
static |
Identity of the peer we transmit to / connect to.
('-p' command-line option).
Definition at line 283 of file gnunet-transport.c.
Referenced by address_iterator(), blacklist_cb(), block_plugin_dht_check_block(), block_plugin_dht_check_reply(), block_plugin_dht_get_key(), check_connection_quality(), check_hello(), check_known_address(), check_known_challenge(), check_validation_request_pending(), consider_for_advertising(), consider_peer_for_forwarding(), core_send_connect_info(), cores_send_connect_info(), cores_send_disconnect_info(), create_target(), cummulative_ack(), detach_terminal(), dv_neighbour_selection(), dv_neighbour_transmission(), find_list_tunnels(), find_list_tunnels_alternate(), find_queue(), find_target(), flush_respect(), fork_and_exec(), free_ack_cummulator_cb(), free_backtalker_cb(), free_dv_routes_cb(), free_neighbour_cb(), free_peer(), free_validation_state_cb(), GCPP_try_path_from_dht(), GDS_try_connect(), GDS_u_connect(), GDS_u_try_connect(), gns_resolve_name(), GNUNET_CORE_get_mq(), GNUNET_HELLO_builder_new(), GNUNET_HELLO_dht_msg_to_block(), GNUNET_HELLO_parser_from_url(), GNUNET_i2s(), GNUNET_i2s2(), GNUNET_i2s_full(), GNUNET_OS_process_wait(), GNUNET_PEER_intern(), GNUNET_PEER_resolve(), GNUNET_PEER_search(), GNUNET_PEERSTORE_hello_add(), GNUNET_TRANSPORT_communicator_notify(), gnunet_try_connect(), GSC_SESSIONS_end(), GSC_SESSIONS_solicit(), handle_p2p_put(), handle_search_response(), handle_transport_notify_connect(), handshake_ack_monotime_cb(), handshake_monotime_cb(), hello_for_client_cb(), hello_for_incoming_cb(), hello_iter(), hosts_directory_scan_callback(), http_recv_data_cb(), ip_try_connect(), lookup_neighbour(), lookup_virtual_link(), main(), maint_child_death(), netjail_start_run(), notify_client_connect_info(), notify_client_queues(), notify_connect(), notify_disconnect(), operation_timeout(), parser_new(), plugin_monitoring_cb(), read_cb(), recv_from_streams(), rekey_monotime_cb(), run(), save_list_tunnels(), show_peer(), start_address_validation(), start_burst(), stop_peer_request(), suggest_to_connect(), update_ax_by_kx(), verify_list_tunnels_flag_token(), and write_benchmark_data().
|
static |
Task for operation timeout.
Definition at line 288 of file gnunet-transport.c.
Referenced by notify_connect(), operation_timeout(), process_peer_iteration_cb(), process_peer_monitoring_cb(), process_peer_string(), run(), and shutdown_task().
|
static |
Selected level of verbosity.
Definition at line 293 of file gnunet-transport.c.
Referenced by do_send(), handle_dummy(), main(), notify_connect(), and run().
struct GNUNET_OS_Process* resolver |
Resolver process handle.
Definition at line 298 of file gnunet-transport.c.
|
static |
Number of address resolutions pending.
Definition at line 303 of file gnunet-transport.c.
Referenced by process_peer_string(), and resolve_peer_address().
|
static |
DLL: head of validation resolution entries.
Definition at line 308 of file gnunet-transport.c.
Referenced by shutdown_task().
|
static |
DLL: tail of validation resolution entries.
Definition at line 313 of file gnunet-transport.c.
Referenced by shutdown_task().
|
static |
DLL: head of resolution entries.
Definition at line 318 of file gnunet-transport.c.
Referenced by operation_timeout(), process_peer_string(), resolve_peer_address(), and shutdown_task().
|
static |
DLL: head of resolution entries.
Definition at line 323 of file gnunet-transport.c.
Referenced by operation_timeout(), process_peer_string(), resolve_peer_address(), and shutdown_task().