---
title: receiveHandler
framework: network
role: symbol
role_heading: Instance Property
path: network/nwethernetchannel/receivehandler
---

# receiveHandler

A handler that delivers inbound Ethernet frames.

## Declaration

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

## Discussion

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

## See Also

### Sending and Receiving Ethernet Frames

- [send(content:to:vlanTag:completion:)](network/nwethernetchannel/send(content:to:vlantag:completion:).md)
- [NWEthernetChannel.EthernetAddress](network/nwethernetchannel/ethernetaddress.md)
