Jonathan ‘theJPster’ Pallantthejpster@hachyderm.io
Apr 12, 2026, 12:56 PM@chrysn what does std::net::TcpListener::bind do? I know the trait it uses creates an iterator of SockAddrs but I assume it stops on the first successful one.
@chrysn what does std::net::TcpListener::bind do? I know the trait it uses creates an iterator of SockAddrs but I assume it stops on the first successful one.
@thejpster It appears to bind to just one. (I don't see how Rust could do anything different, given that no OS I know will have a multiply bound socket outside of ::, and Rust does expose a single file descriptor per listener).