From 7bca48bc5b5e37a3a8b0b23e57b88d069fa50589 Mon Sep 17 00:00:00 2001 From: Dennis Brentjes Date: Wed, 12 Oct 2016 14:26:12 +0200 Subject: 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. --- node/prevnode.hpp | 42 ------------------------------------------ 1 file changed, 42 deletions(-) delete mode 100644 node/prevnode.hpp (limited to 'node/prevnode.hpp') diff --git a/node/prevnode.hpp b/node/prevnode.hpp deleted file mode 100644 index 6a6b431..0000000 --- a/node/prevnode.hpp +++ /dev/null @@ -1,42 +0,0 @@ -#pragma once - -#include "client.hpp" - -#include "cmix.pb.h" - -#include - -/*! - * \file - */ - -/*! - * \brief The PrevNode class represents the previous node in the network, will only be received from. - */ -class PrevNode -{ - Client client; -public: - /*! - * \brief PrevNode - * \param socket an rvalue reference to the socket it takes ownership and uses to communicate with the previous node in the network. - */ - PrevNode(Client&& socket); - - /*! - * \brief PrevNode move assignment operator. - */ - PrevNode& operator=(PrevNode&&) = default; - - /*! - * \brief receive Forwards a receive request to the client. - * \param receive_handler The function to call with the received data. - */ - void receive(std::function const&)> receive_handler); - - /*! - * \brief close This function closes the underlying socket connection. - */ - void close(); -}; - -- cgit v1.2.3-70-g09d2