summaryrefslogtreecommitdiff
path: root/examples/udp_sync.rs
diff options
context:
space:
mode:
authorzy <[email protected]>2023-08-23 04:59:13 +0000
committerzy <[email protected]>2023-08-23 04:59:13 +0000
commite5038c5b0c1d5ee8026290d22734d79818533eef (patch)
tree7435e06eb8f266b616f6d6b4330f504d7b00f7f6 /examples/udp_sync.rs
parent086801a8d947fbcd9df43b13ecdd91986ba1b5da (diff)
重新 initudp
Diffstat (limited to 'examples/udp_sync.rs')
-rw-r--r--examples/udp_sync.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/udp_sync.rs b/examples/udp_sync.rs
index b33ec35..8187ac0 100644
--- a/examples/udp_sync.rs
+++ b/examples/udp_sync.rs
@@ -1,3 +1,6 @@
+//! Echo example.
+//! Use `nc -u 127.0.0.1 30000` to connect.
+
use std::net::UdpSocket;
fn main() -> std::io::Result<()> {