aboutsummaryrefslogtreecommitdiff
path: root/network-handler/nodemanager.hpp
diff options
context:
space:
mode:
authorDennis Brentjes <d.brentjes@gmail.com>2016-09-22 16:11:39 +0200
committerDennis Brentjes <d.brentjes@gmail.com>2016-09-22 16:11:39 +0200
commit8065e1bf2229294fea502226962bd66d37ff81ce (patch)
tree65f36f295ad3b3dd81e7a6ef074e427980215863 /network-handler/nodemanager.hpp
parent492b2d1b9988607239c33c3c559870e90fbe66c3 (diff)
downloadcmix-8065e1bf2229294fea502226962bd66d37ff81ce.tar.gz
cmix-8065e1bf2229294fea502226962bd66d37ff81ce.tar.bz2
cmix-8065e1bf2229294fea502226962bd66d37ff81ce.zip
Some changes to the network-handler.
Diffstat (limited to 'network-handler/nodemanager.hpp')
-rw-r--r--network-handler/nodemanager.hpp18
1 files changed, 15 insertions, 3 deletions
diff --git a/network-handler/nodemanager.hpp b/network-handler/nodemanager.hpp
index e6a42c5..651e6a4 100644
--- a/network-handler/nodemanager.hpp
+++ b/network-handler/nodemanager.hpp
@@ -1,12 +1,24 @@
#pragma once
#include "nodeclient.hpp"
+#include "api.h"
+#include "curve25519.h"
-#include <vector>
+#include <list>
+
+struct ConnectionInfo {
+ std::string host;
+ std::string port;
+};
class NodeManager
{
- std::vector<NodeClient> clients;
+ boost::asio::io_service io_service;
+ Api api;
+ KeyPair key_pair;
+ std::list<NodeClient> nodes;
public:
- NodeManager();
+ NodeManager(std::vector<ConnectionInfo> connections);
+
+
};