summaryrefslogtreecommitdiff
path: root/modules/io_codec/examples/peer_echo_client.cpp
diff options
context:
space:
mode:
authorClaudius 'keldu' Holeksa <mail@keldu.de>2024-10-16 18:51:50 +0200
committerClaudius 'keldu' Holeksa <mail@keldu.de>2024-10-16 18:51:50 +0200
commitb048b02732cbfcfbb95bb8e16dec71aca0e977f4 (patch)
tree8f948159473f40ca42c73d75e61d8d03c3b38f24 /modules/io_codec/examples/peer_echo_client.cpp
parentb10d0b0e1a30eb02777f5a02b81bf45e09749edb (diff)
Reworked abstraction for network
Diffstat (limited to 'modules/io_codec/examples/peer_echo_client.cpp')
-rw-r--r--modules/io_codec/examples/peer_echo_client.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/io_codec/examples/peer_echo_client.cpp b/modules/io_codec/examples/peer_echo_client.cpp
index 942deed..b610372 100644
--- a/modules/io_codec/examples/peer_echo_client.cpp
+++ b/modules/io_codec/examples/peer_echo_client.cpp
@@ -69,13 +69,13 @@ int main(int argc, char** argv){
codec<sch::Echo, encode::KelSimple> simple_codec;
- network.connect(*addr).then([&](saw::own<saw::io_stream> client){
+ network.connect(*addr).then([&](saw::own<saw::io_stream<saw::net::Os>> client){
if(!client){
return;
}
- auto echo_stream = saw::heap<saw::async_io_stream>(std::move(client));
- auto echo_peer_stream_p = saw::new_streaming_io_peer<sch::Echo, sch::Echo, trans::FixedLength<8u>, encode::KelSimple, ring_buffer>(std::move(echo_stream));
+ auto echo_stream = saw::heap<saw::async_io_stream<saw::net::Os>>(std::move(client));
+ auto echo_peer_stream_p = saw::new_streaming_io_peer<sch::Echo, sch::Echo, trans::FixedLength<8u>, encode::KelSimple>(std::move(echo_stream));
std::cout<<"Connected"<<std::endl;