From 74cea534fd189a2db423ae60997447e66265922b Mon Sep 17 00:00:00 2001 From: Dennis Brentjes Date: Sun, 27 Nov 2016 10:08:19 +0100 Subject: Implements message delivery. Adds a minimum number of messages per mix. Embeds the destination in the message. Clients now send messages to themselves. --- node/node.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'node/node.hpp') diff --git a/node/node.hpp b/node/node.hpp index db3c66f..5365c9f 100644 --- a/node/node.hpp +++ b/node/node.hpp @@ -40,6 +40,7 @@ struct NodeNetworkSettings { std::string next_host; ///< Next nodes host. std::string next_port; ///< Next nodes port. std::string certdir; ///< Directory containing trusted certificate authorities. + unsigned int minimum_nr_messages; ///< The minimum number of available messages before starting to run a mix; }; /*! @@ -85,6 +86,7 @@ class Node void start_realtime_phase(); void shutdown(); bool send_bye(bool got_bye); + void start_timer_delayed_mix(); void handle_node_initialization(cmix_proto::Initialization const& init); void handle_node_secretkey(cmix_proto::SecretKey const& secret); -- cgit v1.2.3-70-g09d2