Cancels a service registration or a service resolution.
- iOS 2.0+
- macOS 10.2+
- Mac Catalyst 13.0+
- tvOS 9.0+
The CFNetService, obtained by previously calling
CFNetServiceCreate, for which a registration or a resolution is to be canceled.
This function cancels service registrations, started by
CFNetServiceRegister, thereby making the service unavailable. It also cancels service resolutions, started by
If you are shutting down an asynchronous service, you should first call
clientCB set to
NULL. Then call this function.
If you are shutting down a synchronous service, call this function from another thread.
This function also cancels service resolutions. You would want to cancel a service resolution if your callback function has received an IP address that you’ve successfully used to connect to the service. In addition, you might want to cancel a service resolution if the resolution is taking longer than a user would want to wait or if the user canceled the operation.
This function is thread safe.
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.