aboutsummaryrefslogtreecommitdiff
path: root/client/cmixclient.hpp
diff options
context:
space:
mode:
authorDennis Brentjes <d.brentjes@gmail.com>2016-10-10 15:52:14 +0200
committerDennis Brentjes <d.brentjes@gmail.com>2016-10-10 15:52:14 +0200
commitd8e48c32f8435076382543edfafbf81c223f9e87 (patch)
tree575f0f7f452c4c8800e77c7fd79b4354fed8a81c /client/cmixclient.hpp
parentfa35c9c3c71243a7f8537e5a81f7a09fa05a382e (diff)
downloadcmix-d8e48c32f8435076382543edfafbf81c223f9e87.tar.gz
cmix-d8e48c32f8435076382543edfafbf81c223f9e87.tar.bz2
cmix-d8e48c32f8435076382543edfafbf81c223f9e87.zip
Added a Client so we can start finishing up the setup phase of cMix.
Diffstat (limited to 'client/cmixclient.hpp')
-rw-r--r--client/cmixclient.hpp33
1 files changed, 33 insertions, 0 deletions
diff --git a/client/cmixclient.hpp b/client/cmixclient.hpp
new file mode 100644
index 0000000..10438d1
--- /dev/null
+++ b/client/cmixclient.hpp
@@ -0,0 +1,33 @@
+#pragma once
+
+#include "node.hpp"
+
+#include "logging.hpp"
+#include "client.hpp"
+#include "connect.hpp"
+#include "cmix.pb.h"
+
+#include <string>
+#include <vector>
+
+struct NodeDetails {
+ std::string host;
+ std::string port;
+};
+
+class CMixClient {
+
+ boost::asio::io_service io_service;
+
+ std::vector<NodeDetails> network_details;
+ std::vector<Node> network_connections;
+
+ void initialized();
+
+ void initialize_connections();
+
+public:
+ CMixClient(std::vector<NodeDetails> details);
+
+ void run();
+}; \ No newline at end of file