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
) -> Result<Vec<u8, Global>, MdnsResponseError>

Builds the response to the DNS query.

If there are more than 2^16-1 addresses, ignores the rest.