Contents

SCNetworkServiceSetName(_:_:)

Stores the user-specified name for the specified service.

Declaration

func SCNetworkServiceSetName(_ service: SCNetworkService, _ name: CFString?) -> Bool

Parameters

  • service:

    The network service.

  • name:

    The user-defined name to associate with the service.

Return Value

TRUE if the name was saved; FALSE if an error occurred.

Discussion

Although it is not technically required, the user-specified names for all services within any given set should be unique. For this reason, an error will be returned if you attempt to name two services with the same string.

See Also

Configuring Network Services