support for pushing out content More...
#include "gnunet-service-fs.h"
Go to the source code of this file.
Functions | |
void | GSF_push_init_ (void) |
Setup the module. More... | |
void | GSF_push_done_ (void) |
Shutdown the module. More... | |
void | GSF_push_start_ (struct GSF_ConnectedPeer *peer) |
A peer connected to us or we are now again allowed to push content. More... | |
void | GSF_push_stop_ (struct GSF_ConnectedPeer *peer) |
A peer disconnected from us or asked us to stop pushing content for a while. More... | |
support for pushing out content
Definition in file gnunet-service-fs_push.h.
void GSF_push_init_ | ( | void | ) |
Setup the module.
Definition at line 625 of file gnunet-service-fs_push.c.
References _, consider_gathering(), enabled, GNUNET_CONFIGURATION_get_value_time(), GNUNET_CONFIGURATION_get_value_yesno(), GNUNET_ERROR_TYPE_WARNING, GNUNET_log_config_invalid(), GNUNET_OK, GNUNET_YES, GSF_cfg, and min_migration_delay.
Referenced by run().
void GSF_push_done_ | ( | void | ) |
Shutdown the module.
Definition at line 654 of file gnunet-service-fs_push.c.
References delete_migration_block(), GNUNET_assert, GNUNET_DATASTORE_cancel(), GNUNET_SCHEDULER_cancel(), mig_head, mig_qe, mig_size, and mig_task.
Referenced by shutdown_task().
void GSF_push_start_ | ( | struct GSF_ConnectedPeer * | peer | ) |
A peer connected to us or we are now again allowed to push content.
Start pushing content to this peer.
peer | handle for the peer that connected |
A peer connected to us or we are now again allowed to push content.
Start pushing content to this peer.
peer | handle for the peer that connected |
Definition at line 567 of file gnunet-service-fs_push.c.
References enabled, find_content(), GNUNET_break, GNUNET_CONTAINER_DLL_insert, GNUNET_ERROR_TYPE_DEBUG, GNUNET_i2s(), GNUNET_log, GNUNET_new, GNUNET_YES, GSF_connected_peer_get_identity2_(), MigrationReadyPeer::next, MigrationReadyPeer::peer, peer_head, and peer_tail.
Referenced by peer_respect_cb(), and revive_migration().
void GSF_push_stop_ | ( | struct GSF_ConnectedPeer * | peer | ) |
A peer disconnected from us or asked us to stop pushing content for a while.
Stop pushing content to this peer.
peer | handle for the peer that disconnected |
A peer disconnected from us or asked us to stop pushing content for a while.
Stop pushing content to this peer.
peer | handle for the peer that disconnected |
Definition at line 603 of file gnunet-service-fs_push.c.
References MigrationReadyPeer::env, GNUNET_CONTAINER_DLL_remove, GNUNET_free, GNUNET_MQ_send_cancel(), MigrationReadyPeer::next, MigrationReadyPeer::peer, peer_head, and peer_tail.
Referenced by GSF_peer_disconnect_handler(), and handle_p2p_migration_stop().