Function

SCNetworkReachabilityScheduleWithRunLoop

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

Declaration

Boolean SCNetworkReachabilityScheduleWithRunLoop(SCNetworkReachabilityRef target, CFRunLoopRef runLoop, CFStringRef runLoopMode);

Parameters

target

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

runLoop

The run loop on which the target should be scheduled. Must not be NULL.

runLoopMode

The mode in which to schedule the target. Must not be NULL.

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.

SCNetworkReachabilityUnscheduleFromRunLoop

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

SCNetworkReachabilitySetDispatchQueue

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