Class TransportAbstract

Low-level transport.

The transport understands NDN TLV structures, but does not otherwise concern with packet format.

Hierarchy (View Summary)

Constructors

Properties

Accessors

Methods

Constructors

Properties

attributes: Transport.Attributes

Attributes of the transport.

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

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