aboutsummaryrefslogtreecommitdiff
path: root/node/node.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'node/node.hpp')
-rw-r--r--node/node.hpp21
1 files changed, 20 insertions, 1 deletions
diff --git a/node/node.hpp b/node/node.hpp
index 7d30188..9e321df 100644
--- a/node/node.hpp
+++ b/node/node.hpp
@@ -2,20 +2,39 @@
#include "server.hpp"
#include "nodeclient.hpp"
+#include "nextnode.hpp"
+
+#include "api.h"
+#include "curve25519.h"
#include <boost/asio/io_service.hpp>
#include <list>
+struct NodeNetworkSettings {
+ bool is_first;
+ std::string next_host;
+ std::string next_port;
+};
+
class Node
{
boost::asio::io_service io_service;
Server server;
std::list<NodeClient> clients;
+ NextNode next_node;
+
+ Api api;
+ KeyPair keypair;
+
void accept_handler(boost::asio::ip::tcp::socket&& socket);
+ void start_initialisation() {
+
+ }
+
public:
- Node(ListenSettings const& listen_settings);
+ Node(ListenSettings const& listen_settings, NodeNetworkSettings network_settings);
};