<!--
{
  "availability" : [
    "macOS: 10.15.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Network",
  "identifier" : "/documentation/Network/NWEthernetChannel/receiveHandler",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Network"
    ],
    "preciseIdentifier" : "s:7Network17NWEthernetChannelC14receiveHandlery10Foundation4DataV_s6UInt16VAC15EthernetAddressVAKtcSgvp"
  },
  "title" : "receiveHandler"
}
-->

# receiveHandler

A handler that delivers inbound Ethernet frames.

```
@preconcurrency final var receiveHandler: (@Sendable (Data, UInt16, NWEthernetChannel.EthernetAddress, NWEthernetChannel.EthernetAddress) -> Void)? { get set }
```

## Discussion

The receive handler only needs to be set once, and will be invoked for each received Ethernet frame.

---

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)