Function libp2p_mdns::service::build_query_response [−][src]
pub fn build_query_response(
id: u16,
peer_id: PeerId,
addresses: impl ExactSizeIterator<Item = Multiaddr>,
ttl: Duration
) -> Vec<Vec<u8>>
Builds the response to an address discovery DNS query.
If there are more than 2^16-1 addresses, ignores the rest.