pub fn register_extended(
    reg_type: &str,
    port: u16,
    data: RegisterData<'_>
) -> Result<Register>
Expand description

Register a service

  • reg_type: the service type followed by the protocol, separated by a dot (for example, “_ssh._tcp”). For details see DNSServiceRegister
  • port: The port (in native byte order) on which the service accepts connections. Pass 0 for a “placeholder” service.
  • data: additional service data

See DNSServiceRegister.