diff options
author | Sree Harsha Totakura <totakura@in.tum.de> | 2013-05-07 14:35:46 +0000 |
---|---|---|
committer | Sree Harsha Totakura <totakura@in.tum.de> | 2013-05-07 14:35:46 +0000 |
commit | 05aa8d8001e3977adb5d68d851db608c075dffee (patch) | |
tree | 2c4e23e307a917d67fb41719f2b858bccea590aa /src/testbed/gnunet-service-testbed.h | |
parent | 3029a328070bd5eb422261fb3559b01f415ae51c (diff) | |
download | gnunet-05aa8d8001e3977adb5d68d851db608c075dffee.tar.gz gnunet-05aa8d8001e3977adb5d68d851db608c075dffee.zip |
fix #2665: peer reconfiguration now implemented
Diffstat (limited to 'src/testbed/gnunet-service-testbed.h')
-rw-r--r-- | src/testbed/gnunet-service-testbed.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/testbed/gnunet-service-testbed.h b/src/testbed/gnunet-service-testbed.h index bdf0f4cce..55ad08421 100644 --- a/src/testbed/gnunet-service-testbed.h +++ b/src/testbed/gnunet-service-testbed.h | |||
@@ -717,6 +717,20 @@ GST_handle_manage_peer_service (void *cls, struct GNUNET_SERVER_Client *client, | |||
717 | 717 | ||
718 | 718 | ||
719 | /** | 719 | /** |
720 | * Handler for GNUNET_MESSAGE_TYPDE_TESTBED_RECONFIGURE_PEER type messages. | ||
721 | * Should stop the peer asyncronously, destroy it and create it again with the | ||
722 | * new configuration. | ||
723 | * | ||
724 | * @param cls NULL | ||
725 | * @param client identification of the client | ||
726 | * @param message the actual message | ||
727 | */ | ||
728 | void | ||
729 | GST_handle_peer_reconfigure (void *cls, struct GNUNET_SERVER_Client *client, | ||
730 | const struct GNUNET_MessageHeader *message); | ||
731 | |||
732 | |||
733 | /** | ||
720 | * Frees the ManageServiceContext queue | 734 | * Frees the ManageServiceContext queue |
721 | */ | 735 | */ |
722 | void | 736 | void |
@@ -770,6 +784,13 @@ GST_free_roccq (); | |||
770 | 784 | ||
771 | 785 | ||
772 | /** | 786 | /** |
787 | * Cleans up the Peer reconfigure context list | ||
788 | */ | ||
789 | void | ||
790 | GST_free_prcq (); | ||
791 | |||
792 | |||
793 | /** | ||
773 | * Initializes the cache | 794 | * Initializes the cache |
774 | * | 795 | * |
775 | * @param size the size of the cache | 796 | * @param size the size of the cache |