- iOS 2.0+
- macOS 10.4+
- Mac Catalyst 13.0+
- tvOS 9.0+
CFNetServiceMonitor, created by calling
CFNet, that is to be started.
Service Monitor Create
CFNetServiceMonitorType that specified the type of record to monitor. For possible values, see
Service Monitor Type
Pointer to a
CFStreamstructure. If an error occurs, on output, the structure’s
domainfield will be set to the error code’s domain and the
errorfield will be set to an appropriate error code. Set this parameter to
NULLif you don’t want to receive the error code and its domain.
TRUE if an asynchronous monitor was started successfully.
FALSE if an error occurred when starting an asynchronous or synchronous monitor, or if
CFNet was called for an synchronous monitor.
This function starts monitoring for changes to records of the type specified by
record. If a monitor is already running for the service associated with the specified CFNetServiceMonitorRef, this function returns
For synchronous monitors, this function blocks until the monitor is stopped by calling
CFNet, in which case, this function returns
For asynchronous monitors, this function returns
FALSE, depending on whether monitoring starts successfully.
This function is thread safe.