diff options
Diffstat (limited to 'modules/io_codec/examples/peer_echo_client.cpp')
-rw-r--r-- | modules/io_codec/examples/peer_echo_client.cpp | 6 |
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; |