diff options
author | Claudius 'keldu' Holeksa <mail@keldu.de> | 2024-10-16 18:51:50 +0200 |
---|---|---|
committer | Claudius 'keldu' Holeksa <mail@keldu.de> | 2024-10-16 18:51:50 +0200 |
commit | b048b02732cbfcfbb95bb8e16dec71aca0e977f4 (patch) | |
tree | 8f948159473f40ca42c73d75e61d8d03c3b38f24 /modules/io_codec/examples/peer_echo_server.cpp | |
parent | b10d0b0e1a30eb02777f5a02b81bf45e09749edb (diff) |
Reworked abstraction for network
Diffstat (limited to 'modules/io_codec/examples/peer_echo_server.cpp')
-rw-r--r-- | modules/io_codec/examples/peer_echo_server.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/io_codec/examples/peer_echo_server.cpp b/modules/io_codec/examples/peer_echo_server.cpp index 4d201c0..804d9ad 100644 --- a/modules/io_codec/examples/peer_echo_server.cpp +++ b/modules/io_codec/examples/peer_echo_server.cpp @@ -50,13 +50,13 @@ int main(){ return -2; } - echo_srv->accept().then([&](saw::own<saw::io_stream> client){ + echo_srv->accept().then([&](saw::own<saw::io_stream<saw::net::Os>> client){ if(!client){ keep_running = false; 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 client"<<std::endl; auto peer_str = echo_peer_stream_p.first.get(); |