Function SCNetworkConnectionCopyUserOptions

Source
pub unsafe extern "C-unwind" fn SCNetworkConnectionCopyUserOptions(
    connection: &SCNetworkConnection,
) -> Option<CFRetained<CFDictionary>>
Available on crate feature SCNetworkConnection only.
Expand description

Copies the user options used to start the connection. This is a mechanism a client can use to retrieve the user options previously passed to the SCNetworkConnectionStart function.

Parameter connection: The SCNetworkConnection to obtain options from.

Returns: Returns the service dictionary containing the connection options. The dictionary can be empty if no user options were used. If NULL is returned, the error can be retrieved using the SCError function.