<!--
{
  "availability" : [
    "macOS: 10.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SystemConfiguration",
  "identifier" : "/documentation/SystemConfiguration/SCNetworkServiceCopyProtocol(_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "System Configuration"
    ],
    "preciseIdentifier" : "c:@F@SCNetworkServiceCopyProtocol"
  },
  "title" : "SCNetworkServiceCopyProtocol(_:_:)"
}
-->

# SCNetworkServiceCopyProtocol(_:_:)

Returns the network protocol of the specified type for the specified service.

```
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.

## Discussion

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)