SCNetworkServiceAddProtocolType(_:_:)
Adds the network protocol of the specified type to the specified service.
Declaration
func SCNetworkServiceAddProtocolType(_ service: SCNetworkService, _ protocolType: CFString) -> BoolParameters
- service:
The network service.
- protocolType:
The type of network protocol to add to the service.
Return Value
TRUE if the protocol was added to the service; FALSE if the protocol was already present or an error occurred.
Discussion
The protocol configuration is set to default values that are appropriate for the interface associated with the service.
See Also
Configuring Network Services
SCNetworkServiceCopy(_:_:)SCNetworkServiceCopyAll(_:)SCNetworkServiceCopyProtocol(_:_:)SCNetworkServiceCopyProtocols(_:)SCNetworkServiceCreate(_:_:)SCNetworkServiceEstablishDefaultConfiguration(_:)SCNetworkServiceGetEnabled(_:)SCNetworkServiceGetInterface(_:)SCNetworkServiceGetName(_:)SCNetworkServiceGetServiceID(_:)SCNetworkServiceGetTypeID()SCNetworkServiceRemove(_:)SCNetworkServiceRemoveProtocolType(_:_:)SCNetworkServiceSetEnabled(_:_:)SCNetworkServiceSetName(_:_:)