diff options
| author | Dennis Brentjes <d.brentjes@gmail.com> | 2016-10-12 14:26:12 +0200 |
|---|---|---|
| committer | Dennis Brentjes <d.brentjes@gmail.com> | 2016-10-12 14:26:12 +0200 |
| commit | 7bca48bc5b5e37a3a8b0b23e57b88d069fa50589 (patch) | |
| tree | 47cd62512e631a064852015c65bb1965bc72414a /node/nextnode.cpp | |
| parent | 0fb433690c0ca5f9561fe9e2e973e2cd61b873ba (diff) | |
| download | cmix-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 'node/nextnode.cpp')
| -rw-r--r-- | node/nextnode.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/node/nextnode.cpp b/node/nextnode.cpp deleted file mode 100644 index 8c5b7eb..0000000 --- a/node/nextnode.cpp +++ /dev/null @@ -1,19 +0,0 @@ -#include "nextnode.hpp" - -#include "logging.hpp" - -using namespace boost::asio::ip; - -NextNode::NextNode(tcp::socket&& socket) -: client(std::move(socket)) -{} - -void NextNode::async_connect(std::string next_host, std::string next_port, std::function<void ()> on_connect) -{ - client.async_connect(next_host, next_port, on_connect); -} - -void NextNode::close() -{ - client.close(); -} |
