From 85d25eebd38bb278ad598a291a007938854945a4 Mon Sep 17 00:00:00 2001 From: Dennis Brentjes Date: Wed, 28 Sep 2016 10:55:58 +0200 Subject: Made changes so we can have a 1 Node cmix network. --- node/node.hpp | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'node/node.hpp') diff --git a/node/node.hpp b/node/node.hpp index 9e321df..5668dec 100644 --- a/node/node.hpp +++ b/node/node.hpp @@ -7,6 +7,8 @@ #include "api.h" #include "curve25519.h" +#include "cmix.pb.h" + #include #include @@ -21,20 +23,27 @@ class Node { boost::asio::io_service io_service; Server server; - std::list clients; + std::list clients; + + NodeNetworkSettings network_settings; NextNode next_node; Api api; KeyPair keypair; + std::vector network_pub_key; void accept_handler(boost::asio::ip::tcp::socket&& socket); - void start_initialisation() { - - } + void start_precomputation(); + void start_initialisation(); public: Node(ListenSettings const& listen_settings, NodeNetworkSettings network_settings); + ~Node(); + + void run() { + io_service.run(); + } }; -- cgit v1.2.3-70-g09d2