aboutsummaryrefslogtreecommitdiff
path: root/libcmix-common/senderreceiver.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'libcmix-common/senderreceiver.hpp')
-rw-r--r--libcmix-common/senderreceiver.hpp28
1 files changed, 28 insertions, 0 deletions
diff --git a/libcmix-common/senderreceiver.hpp b/libcmix-common/senderreceiver.hpp
new file mode 100644
index 0000000..9a07f78
--- /dev/null
+++ b/libcmix-common/senderreceiver.hpp
@@ -0,0 +1,28 @@
+#pragma once
+
+#include "cmixprotofunctor.hpp"
+#include "receiver.hpp"
+#include "sender.hpp"
+
+#include "protobufclient.hpp"
+
+struct SenderReceiver : private ProtobufClient<CMixProtoFunctor>
+{
+ explicit SenderReceiver(Receiver&& r);
+
+ explicit SenderReceiver(Sender&& s);
+
+ using ProtobufClient::ProtobufClient;
+
+ using ProtobufClient::async_receive;
+
+ using ProtobufClient::async_send;
+
+ using ProtobufClient::async_connect;
+
+ using ProtobufClient::close;
+
+ using ProtobufClient::on_done;
+
+ using ProtobufClient::is_open;
+}; \ No newline at end of file