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