Queries a network service for the contents of its TXT records.
- iOS 2.0+
- macOS 10.4+
- Mac Catalyst 13.0+
- tvOS 9.0+
Reference for the network service whose TXT record data is to be obtained; cannot be
NULL. Note that in order to get TXT record data, you must resolve
theService by calling
CFNetServiceResolveWithTimeout before calling this function.
This function gets the data from the service’s TXT records.
This function gets the data in a thread-safe way, but the data itself is not safe if the service is altered from another thread.
Record type specifier used to tell a service monitor the type of record changes to watch for.
A structure provided when a CFNetService is associated with a callback function or when a CFNetServiceBrowser is created.
Error codes that may be returned by CFNetServices functions or passed to CFNetServices callback functions.
Associates a callback function with a CFNetService or disassociates a callback function from a CFNetService.