aboutsummaryrefslogtreecommitdiff
path: root/network-handler/nodemanager.hpp
diff options
context:
space:
mode:
authorDennis Brentjes <d.brentjes@gmail.com>2016-10-12 14:26:12 +0200
committerDennis Brentjes <d.brentjes@gmail.com>2016-10-12 14:26:12 +0200
commit7bca48bc5b5e37a3a8b0b23e57b88d069fa50589 (patch)
tree47cd62512e631a064852015c65bb1965bc72414a /network-handler/nodemanager.hpp
parent0fb433690c0ca5f9561fe9e2e973e2cd61b873ba (diff)
downloadcmix-7bca48bc5b5e37a3a8b0b23e57b88d069fa50589.tar.gz
cmix-7bca48bc5b5e37a3a8b0b23e57b88d069fa50589.tar.bz2
cmix-7bca48bc5b5e37a3a8b0b23e57b88d069fa50589.zip
Major network rewrite.
One generic class has been introduced to handle all connection types. Typedefs provide Sender Receiver and SenderReceiver types, which limit the functionality of the types. As to not accidentally communicate with the wrong node about things.
Diffstat (limited to 'network-handler/nodemanager.hpp')
-rw-r--r--network-handler/nodemanager.hpp56
1 files changed, 0 insertions, 56 deletions
diff --git a/network-handler/nodemanager.hpp b/network-handler/nodemanager.hpp
deleted file mode 100644
index 91d7160..0000000
--- a/network-handler/nodemanager.hpp
+++ /dev/null
@@ -1,56 +0,0 @@
-#pragma once
-
-#include "nodeclient.hpp"
-#include "api.h"
-#include "curve25519.h"
-
-#include <list>
-
-/*!
- * \file
- */
-
-/*!
- * \brief The ConnectionInfo struct
- */
-struct ConnectionInfo {
- std::string host; ///< The host
- std::string port; ///< The port
-};
-
-/*!
- * \brief The NodeManager class
- *
- * This class will probably never be fleshed out.
- */
-class NodeManager
-{
- /*!
- * \brief io_service
- */
- boost::asio::io_service io_service;
-
- /*!
- * \brief api
- */
- Api api;
-
- /*!
- * \brief key_pair
- */
- KeyPair key_pair;
-
- /*!
- * \brief nodes
- */
- std::list<NodeClient> nodes;
-public:
-
- /*!
- * \brief NodeManager
- * \param connections
- */
- NodeManager(std::vector<ConnectionInfo> connections);
-
-
-};