Function simple_mdns::conversion_utils::socket_addr_to_srv_and_address [−][src]
pub fn socket_addr_to_srv_and_address<'a>(
name: &Name<'a>,
addr: SocketAddr,
rr_ttl: u32
) -> (ResourceRecord<'a>, ResourceRecord<'a>)
Expand description
Convert the socket address to a SRV and an A (IpV4) or AAAA (IpV6) record, the return will be a tuple where the SRV is the first item