Function

SCNetworkReachabilitySetDispatchQueue

Schedules callbacks for the specified target on the specified dispatch queue.

Declaration

Boolean SCNetworkReachabilitySetDispatchQueue(SCNetworkReachabilityRef target, dispatch_queue_t queue);

Parameters

target

The address or name that is set up for asynchronous notifications. Must not be NULL.

queue

The libdispatch queue on which the target should run. Pass NULL to disable notifications and release the queue.

Return Value

TRUE if the target is scheduled successfully; otherwise, FALSE.

See Also

Preparing to Determine Reachability

SCNetworkReachabilityGetTypeID

Returns the type identifier of all SCNetworkReachability instances.

SCNetworkReachabilitySetCallback

Assigns a client to the specified target, which receives callbacks when the reachability of the target changes.

SCNetworkReachabilityScheduleWithRunLoop

Schedules the specified network target with the specified run loop and mode.

SCNetworkReachabilityUnscheduleFromRunLoop

Unschedules the specified target from the specified run loop and mode.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software