Contents

init(on:etherType:)

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

Declaration

init(on interface: NWInterface, etherType: UInt16)

Parameters

  • interface:

    The interface on which to send and receive Ethernet frames.

  • etherType:

    The custom Ethernet frame type to register for this channel, in host-byte order.

See Also

Managing Ethernet Channels