Add a UDP mode to the connect example

This commit is contained in:
Alex Crichton
2017-09-11 08:33:09 -07:00
parent 5e4cfdfab1
commit a611f6ec30
2 changed files with 170 additions and 70 deletions
+1 -1
View File
@@ -6,7 +6,7 @@
//!
//! and in another terminal you can run:
//!
//! nc -4u localhost 8080
//! cargo run --example connect -- --udp 127.0.0.1:8080
//!
//! Each line you type in to the `nc` terminal should be echo'd back to you!