---
title: "nw_protocol_definition_is_equal(_:_:)"
framework: network
role: symbol
role_heading: Function
path: "network/nw_protocol_definition_is_equal(_:_:)"
---

# nw_protocol_definition_is_equal(_:_:)

Compares two protocol definitions, and returns true if they represent the same protocol implementation.

## Declaration

```swift
func nw_protocol_definition_is_equal(_ definition1: nw_protocol_definition_t, _ definition2: nw_protocol_definition_t) -> Bool
```
