summaryrefslogtreecommitdiff
path: root/modules/io_codec/c++
diff options
context:
space:
mode:
authorClaudius 'keldu' Holeksa <mail@keldu.de>2024-07-19 15:14:39 +0200
committerClaudius 'keldu' Holeksa <mail@keldu.de>2024-07-19 15:14:39 +0200
commitd37e2449e0c5f44b4d10ecd6c99841a9b3c4b582 (patch)
treeafc017525271fce04b78fb0415ff379132bca1c6 /modules/io_codec/c++
parent14dbb72f6c6043b442c5a74299fbe55b9f199ca6 (diff)
wip
Diffstat (limited to 'modules/io_codec/c++')
-rw-r--r--modules/io_codec/c++/io_peer.tmpl.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/io_codec/c++/io_peer.tmpl.hpp b/modules/io_codec/c++/io_peer.tmpl.hpp
index e1863fc..26793b1 100644
--- a/modules/io_codec/c++/io_peer.tmpl.hpp
+++ b/modules/io_codec/c++/io_peer.tmpl.hpp
@@ -103,14 +103,14 @@ streaming_io_peer<Incoming, Outgoing, Encoding,
return io_stream_->on_read_disconnected();
}
-template <typename Codec, typename Incoming, typename Outgoing, typename BufferT>
-std::pair<own<streaming_io_peer<Codec, Incoming, Outgoing, BufferT>>,
- conveyor<data<Incoming>>>
+template <typename Incoming, typename Outgoing, typename BufferT>
+std::pair<own<streaming_io_peer<Incoming, Outgoing, BufferT>>,
+ conveyor<data<Incoming,Encoding>>>
new_streaming_io_peer(own<async_io_stream> stream) {
auto caf =
new_conveyor_and_feeder<data<Incoming>>();
- return {heap<streaming_io_peer<Codec, Incoming, Outgoing, BufferT>>(
+ return {heap<streaming_io_peer<Incoming, Outgoing, BufferT>>(
std::move(caf.feeder), std::move(stream)),
std::move(caf.conveyor)};
}