Function SCNetworkConnectionScheduleWithRunLoop

Source
pub unsafe extern "C-unwind" fn SCNetworkConnectionScheduleWithRunLoop(
    connection: &SCNetworkConnection,
    run_loop: &CFRunLoop,
    run_loop_mode: &CFString,
) -> bool
Available on crate feature SCNetworkConnection only.
Expand description

Schedules a connection with the run loop.

Parameter connection: The SCNetworkConnection to schedule.

Parameter runLoop: The run loop to schedule with.

Parameter runLoopMode: The run loop mode.

Returns: Returns TRUE if the connection is scheduled successfully; FALSE if the scheduling failed. The error can be retrieved using the SCError function.