SCNetworkServiceCopyProtocol(_:_:)
Returns the network protocol of the specified type for the specified service.
Declaration
func SCNetworkServiceCopyProtocol(_ service: SCNetworkService, _ protocolType: CFString) -> SCNetworkProtocol?Parameters
- service:
The network service.
- protocolType:
The type of network protocol.
Return Value
The network protocol associated with the service, or NULL if this protocol has not been added or if an error occurred. You must release the returned value.
See Also
Configuring Network Services
SCNetworkServiceAddProtocolType(_:_:)SCNetworkServiceCopy(_:_:)SCNetworkServiceCopyAll(_:)SCNetworkServiceCopyProtocols(_:)SCNetworkServiceCreate(_:_:)SCNetworkServiceEstablishDefaultConfiguration(_:)SCNetworkServiceGetEnabled(_:)SCNetworkServiceGetInterface(_:)SCNetworkServiceGetName(_:)SCNetworkServiceGetServiceID(_:)SCNetworkServiceGetTypeID()SCNetworkServiceRemove(_:)SCNetworkServiceRemoveProtocolType(_:_:)SCNetworkServiceSetEnabled(_:_:)SCNetworkServiceSetName(_:_:)