dns_resolver::util::net

Function send_udp_bytes_to

Source
pub async fn send_udp_bytes_to(
    sock: &UdpSocket,
    target: SocketAddr,
    bytes: &mut [u8],
) -> Result<(), Error>
Expand description

Like send_udp_bytes but sends to the given address

§Errors

If sending the message fails.

§Panics

If given an incomplete (< 12 byte) message.