cadet service; dealing with hello messages More...
Go to the source code of this file.
Functions | |
void | GCH_init (const struct GNUNET_CONFIGURATION_Handle *c) |
Initialize the hello subsystem. More... | |
void | GCH_shutdown (void) |
Shut down the hello subsystem. More... | |
const struct GNUNET_MessageHeader * | GCH_get_mine (void) |
Get own hello message. More... | |
cadet service; dealing with hello messages
All functions in this file should use the prefix GCH (Gnunet Cadet Hello)
Definition in file gnunet-service-cadet_hello.h.
void GCH_init | ( | const struct GNUNET_CONFIGURATION_Handle * | c | ) |
Initialize the hello subsystem.
c | Configuration. |
Definition at line 132 of file gnunet-service-cadet_hello.c.
References error_cb(), GNUNET_assert, GNUNET_PEERSTORE_connect(), GNUNET_PEERSTORE_HELLO_KEY, GNUNET_PEERSTORE_monitor_start(), GNUNET_YES, got_hello(), peerstore, peerstore_notify, and sync_cb().
Referenced by run().
void GCH_shutdown | ( | void | ) |
Shut down the hello subsystem.
Definition at line 155 of file gnunet-service-cadet_hello.c.
References GNUNET_free, GNUNET_PEERSTORE_disconnect(), GNUNET_PEERSTORE_monitor_stop(), mine, peerstore, and peerstore_notify.
Referenced by shutdown_rest().
const struct GNUNET_MessageHeader * GCH_get_mine | ( | void | ) |
Get own hello message.
Definition at line 181 of file gnunet-service-cadet_hello.c.
References builder, GNUNET_HELLO_builder_free(), GNUNET_HELLO_builder_new(), GNUNET_HELLO_builder_to_dht_hello_msg(), GNUNET_TIME_UNIT_ZERO, mine, my_full_id, and my_private_key.
Referenced by announce_id().