From bc39d05453340257fff986edfdd728f2a89d13ad Mon Sep 17 00:00:00 2001 From: Dennis Brentjes Date: Thu, 1 Dec 2016 14:34:18 +0100 Subject: Removed a large chunk of code duplication in the network code. --- libcmix-common/receiver.hpp | 58 +++++++++++---------------- libcmix-common/sender.hpp | 62 +++++++++++------------------ libcmix-common/senderreceiver.hpp | 80 ++++++++++++++------------------------ libcmix-network/client.hpp | 31 ++++++--------- libcmix-network/protobufclient.hpp | 77 ++++++++---------------------------- 5 files changed, 102 insertions(+), 206 deletions(-) diff --git a/libcmix-common/receiver.hpp b/libcmix-common/receiver.hpp index efd3753..ddb2826 100644 --- a/libcmix-common/receiver.hpp +++ b/libcmix-common/receiver.hpp @@ -7,56 +7,44 @@ /*! * \file */ -struct SenderReceiver; /*! - * \brief The Receiver struct is a shim around ProtobufClient and only exposes things needed - * for receiving messages. + * \brief BaseReceiver */ -struct Receiver : private ProtobufClient +template