OptionaldisabledThe service won't advertise ipv6 address records. This can be used to simulate binding on 0.0.0.0. May be combined with restrictedAddresses.
OptionaldomainAdds ability to set custom domain. Will default to "local". The domain will also be automatically appended to the hostname. Creating the service throws when a label of the domain is empty or takes more than 63 octets, with an error naming the hostname it is appended to, or when the domain carries the service's full name past 255 octets on the wire, with an error naming that name.
OptionalhostnameDefines a hostname under which the service can be reached. The specified hostname must not include the TLD. It is a domain name in DNS presentation form, so a dot separates labels and a backslash escapes the character after it, and each space in it becomes a dash. If undefined, the hostname is derived from the service name as one label, in which each space and each dot becomes a dash. Creating the service throws when a label of the hostname, the domain's among them, is empty or takes more than 63 octets, or when the hostname with its domain takes more than 255 octets on the wire.
Instance name of the service
OptionalportPort of the service. If not supplied it must be set later via CiaoService.updatePort BEFORE advertising the service.
OptionalprotocolThe protocol the service uses. Default is TCP.
OptionalrestrictedIf defined it restricts the service to be advertised on the specified ip addresses or interface names.
If an interface name is specified, ANY address on that given interface will be advertised (if an IP address of the given interface is also given in the array, it will be overridden). If an IP address is specified, the service will only be advertised for the given addresses.
Interface names and addresses can be mixed in the array. If an ip address is given, the ip address must be valid at the time of service creation.
If the service is set to advertise on a given interface, though the MDNSServer is configured to ignore this interface, the service won't be advertised on the interface.
OptionalsubtypesOptional array of subtypes of the service. Refer to ServiceType for some known examples.
OptionaltxtIf defined, a txt record will be published with the given service.
Creating the service throws when an entry, written as key=value, takes more than 255 octets.
Type of the service.
Service options supplied when creating a new ciao service.