mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-03 18:57:19 +00:00

add examples of port 0 binding behavior Was trying to find the method to specify the IP address but not the port, and there wasn't information easily accessible about it in the `TcpListener` or `SocketAddr`. Adding examples to `TcpListener` and `UdpSocket` for clarity.