mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-09-25 12:00:35 +00:00
example: add back udp-codec example (#3205)
This commit is contained in:
parent
7ae8135b62
commit
a8e0f0a919
@ -1,8 +1,3 @@
|
||||
fn main() {}
|
||||
|
||||
// Disabled while future of UdpFramed is decided on.
|
||||
// See https://github.com/tokio-rs/tokio/issues/2830
|
||||
/*
|
||||
//! This example leverages `BytesCodec` to create a UDP client and server which
|
||||
//! speak a custom protocol.
|
||||
//!
|
||||
@ -83,4 +78,3 @@ async fn pong(socket: &mut UdpFramed<BytesCodec>) -> Result<(), io::Error> {
|
||||
|
||||
Ok(())
|
||||
}
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user