Contents

SCNetworkConnectionCopyUserPreferences(_:_:_:)

Provides the default service ID and a dictionary of user options for the specified connection.

Declaration

func SCNetworkConnectionCopyUserPreferences(_ selectionOptions: CFDictionary?, _ serviceID: UnsafeMutablePointer<Unmanaged<CFString>?>, _ userOptions: UnsafeMutablePointer<Unmanaged<CFDictionary>?>) -> Bool

Parameters

  • selectionOptions:

    Currently unimplemented. Pass NULL.

  • serviceID:

    On output, a reference to the default service ID for starting connections.

  • userOptions:

    On output, a reference to the default user options dictionary for starting connections.

Return Value

TRUE if there is a valid service to dial; FALSE if the function was unable to retrieve a service to dial.

Discussion

You can use the service ID and user options values returned by this function to open a connection on the fly.

See Also

Getting Connection-Status Information