Shared Memory Packet Interface (memif) transport.

Hierarchy (View Summary)

Properties

Accessors

Methods

Properties

attributes: Transport.Attributes

Attributes of the transport.

memif: Memif

Access the underlying Memif instance.

You may read counters and monitor "memif:up" "memif:down" events, but not send/receive packets.

Iterable of incoming packets received through the transport.

Accessors

  • get mtu(): number
  • Return the transport MTU.

    Returns number

    The transport should be able to send TLV structure of up to this size. If not overridden, return a conservative number.

    Note that this does not restrict incoming packet size.

Methods

  • Returns string

  • Function to accept outgoing packet stream.

    Parameters

    • iterable: TxIterable

      Iterable of outgoing packets sent through the transport. Size of each packet cannot exceed .mtu.

    Returns Promise<void>

    Promise that resolves when iterable is exhausted or rejects upon error.