Enums§
- TcpError
- An error that can occur when reading a DNS TCP message.
Functions§
- read_
tcp_ bytes - Read a DNS message from a TCP stream.
- send_
tcp_ bytes - Write a serialised message to a TCP channel. This sends a two-byte length prefix (big-endian u16) and sets or clears the TC flag as appropriate.
- send_
udp_ bytes - Write a serialised message to a UDP channel. This sets or clears the TC flag as appropriate.
- send_
udp_ bytes_ to - Like
send_udp_bytes
but sends to the given address