summaryrefslogtreecommitdiff
path: root/modules/io_codec/c++/io_peer.hpp
diff options
context:
space:
mode:
authorClaudius "keldu" Holeksa <mail@keldu.de>2024-05-06 10:07:42 +0200
committerClaudius "keldu" Holeksa <mail@keldu.de>2024-05-06 10:07:42 +0200
commit93b05dd8aa20f8db0d6b0eb9d1a8d5b1593f3269 (patch)
tree03db05177c1443a3b099e33759a1b5b0f25632c5 /modules/io_codec/c++/io_peer.hpp
parentd9ad6a70fa70025fdb2dbc0ee27a1f56ff3458e4 (diff)
io_codec: Moving io_peer code to newest code changes
Diffstat (limited to 'modules/io_codec/c++/io_peer.hpp')
-rw-r--r--modules/io_codec/c++/io_peer.hpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/modules/io_codec/c++/io_peer.hpp b/modules/io_codec/c++/io_peer.hpp
index 8ba6ee1..3efb4c0 100644
--- a/modules/io_codec/c++/io_peer.hpp
+++ b/modules/io_codec/c++/io_peer.hpp
@@ -17,10 +17,10 @@ public:
*/
streaming_io_peer(
own<conveyor_feeder<data<Incoming, Encoding>>> feed,
- own<async_io_stream> stream, codec<Encoding> codec, BufferT in, BufferT out);
+ own<async_io_stream> stream, codec<Incoming, Encoding> in_codec, codec<Outgoing, Encoding> out_codec, BufferT in, BufferT out);
/**
- * Constructor
+ * Constructor with mostly default assignements
*/
streaming_io_peer(
own<conveyor_feeder<data<Incoming, Encoding>>> feed,
@@ -74,7 +74,8 @@ private:
own<async_io_stream> io_stream_;
- codec<Encoding> codec_;
+ codec<Incoming, Encoding> in_codec_;
+ codec<Outgoing, Encoding> out_codec_;
BufferT in_buffer_;
BufferT out_buffer_;