<!--
{
  "availability" : [
    "iOS: 12.0.0 -",
    "iPadOS: 12.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.14.0 -",
    "tvOS: 12.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Network",
  "identifier" : "/documentation/Network/nw_ethernet_channel_t",
  "metadataVersion" : "0.1.0",
  "role" : "Type Alias",
  "symbol" : {
    "kind" : "Type Alias",
    "modules" : [
      "Network"
    ],
    "preciseIdentifier" : "c:@T@nw_ethernet_channel_t"
  },
  "title" : "nw_ethernet_channel_t"
}
-->

# nw_ethernet_channel_t

An object you use to send and receive custom Ethernet frames.

```
typealias nw_ethernet_channel_t = any OS_nw_ethernet_channel
```

## Discussion

Use Ethernet channels to send and receive custom Ethernet frame types over an interface.

Creating Ethernet channels requires the `com.apple.developer.networking.custom-protocol` entitlement.

## Topics

### Managing Ethernet Channels

[`nw_ethernet_channel_create(_:_:)`](/documentation/Network/nw_ethernet_channel_create(_:_:))

Initializes an Ethernet channel on a specific interface with a custom Ethernet type.

[`nw_ethernet_channel_set_queue(_:_:)`](/documentation/Network/nw_ethernet_channel_set_queue(_:_:))

Sets the queue on which all channel events are delivered.

[`nw_ethernet_channel_start(_:)`](/documentation/Network/nw_ethernet_channel_start(_:))

Starts the process of registering the channel.

[`nw_ethernet_channel_cancel(_:)`](/documentation/Network/nw_ethernet_channel_cancel(_:))

Unregisters the channel from the interface.

### Handling State Updates

[`nw_ethernet_channel_set_state_changed_handler(_:_:)`](/documentation/Network/nw_ethernet_channel_set_state_changed_handler(_:_:))

Sets a handler to receive channel state updates.

[`nw_ethernet_channel_state_changed_handler_t`](/documentation/Network/nw_ethernet_channel_state_changed_handler_t)

A handler that delivers Ethernet channel state updates with associated errors.

[`nw_ethernet_channel_state_t`](/documentation/Network/nw_ethernet_channel_state_t)

States indicating whether an Ethernet channel is able to send and receive frames.

### Sending and Receiving Ethernet Frames

[`nw_ethernet_channel_send(_:_:_:_:_:)`](/documentation/Network/nw_ethernet_channel_send(_:_:_:_:_:))

Sends a single Ethernet frame over a channel to a specific Ethernet address.

[`nw_ethernet_channel_send_completion_t`](/documentation/Network/nw_ethernet_channel_send_completion_t)

A handler that indicates when an Ethernet frame has been sent, or if an error was encountered.

[`nw_ethernet_channel_set_receive_handler(_:_:)`](/documentation/Network/nw_ethernet_channel_set_receive_handler(_:_:))

Sets a handler to receive inbound Ethernet frames.

[`nw_ethernet_channel_receive_handler_t`](/documentation/Network/nw_ethernet_channel_receive_handler_t)

A handler that delivers inbound Ethernet frames.

[`nw_ethernet_address_t`](/documentation/Network/nw_ethernet_address_t)

A 48-bit Ethernet address.



---

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)