You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use std::net::UdpSocket;fnmain(){let socket = UdpSocket::bind("0.0.0.0:0").unwrap();
socket.connect("127.0.0.1:8125").unwrap();
socket.send("foo:5|c".as_bytes()).unwrap();println!("{:?}", socket.take_error());}
I don't know what to make of this. However, it will definitely result in a behavior change for the client for no good reason that I don't fully understand. It also seems counter to the idea of UDP: If I'm sending a UDP datagram I shouldn't care if the other side is up, down, or on fire.
Potentially have the sink call
UdpSocket::connect
to set the address that will be written too.Pros:
Cons:
.set_nonblocking
by default per Change from_udp_host to create UDP socket in non-blocking mode by default #14 which is also Rust 1.9+)The text was updated successfully, but these errors were encountered: