Module net

Source

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