Sets the TXT record for a CFNetService.
- iOS 2.0+
- macOS 10.4+
- Mac Catalyst 13.0+
- tvOS 9.0+
CFNetServiceRef for which a TXT record is to be set; cannot be
Contents of the TXT record that is to be set. The contents must not exceed 1450 bytes.
TRUE if the TXT record was set; otherwise,
This function sets a TXT record for the specified service. If the service is currently registered on the network, the record is broadcast. Setting a TXT record on a service that is still being resolved is not allowed.
This function is thread safe.