uwuhi/
lib.rs

1//! Unicast and Multicast DNS and DNS Service Discovery implementation.
2
3mod error;
4mod hex;
5pub mod name;
6mod num;
7pub mod packet;
8pub mod resolver;
9pub mod service;
10pub mod tap;
11
12pub use error::Error;
13
14/// Size of unicast DNS message buffers.
15///
16/// Unicast DNS messages are limited to 512 Bytes.
17pub const DNS_BUFFER_SIZE: usize = 512;
18
19/// Size of multicast DNS message buffers.
20///
21/// DNS messages are limited to 512 Bytes, but mDNS works entirely within a local network, so it can
22/// use larger messages.
23///
24/// This constant is the size of packet receive buffers and does not have to accomodate IP and UDP
25/// headers. It still does, because I cannot be bothered.
26pub const MDNS_BUFFER_SIZE: usize = 1500;