Contents

receiveHandler

A handler that delivers inbound Ethernet frames.

Declaration

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

See Also

Sending and Receiving Ethernet Frames