udp: improve ConnectionValidator doc comment

This commit is contained in:
Joakim Frostegård 2022-04-14 22:45:29 +02:00
parent f58e2a9bdb
commit e8cb0c1618

View file

@ -21,7 +21,8 @@ pub const BUFFER_SIZE: usize = 8192;
///
/// Structure of created ConnectionID (bytes making up inner i64):
/// - &[0..4]: connection expiration time as number of seconds after
/// ConnectionValidator instance was created, encoded as u32 bytes
/// ConnectionValidator instance was created, encoded as u32 bytes.
/// Value fits around 136 years.
/// - &[4..8]: truncated keyed BLAKE3 hash of above 4 bytes and octets of
/// client IP address
#[derive(Clone)]