Function SCNetworkProtocolSetEnabled

Source
pub unsafe extern "C-unwind" fn SCNetworkProtocolSetEnabled(
    protocol: &SCNetworkProtocol,
    enabled: bool,
) -> bool
Available on crate feature SCNetworkConfiguration only.
Expand description

Enables or disables the protocol.

Parameter protocol: The network protocol.

Parameter enabled: TRUE if the protocol should be enabled.

Returns: TRUE if the enabled status was saved; FALSE if an error was encountered.