Class LpPacket

NDNLPv2 packet.

Hierarchy (View Summary)

Constructors

Properties

congestionMark?: number
fragCount: number = 1
fragIndex: number = 0
fragSeqNum?: bigint
nack?: NackHeader
payload?: Uint8Array

L3 payload.

This field may contain either a whole L3 packet or fragment of one. This is also known as fragment in other libraries.

pitToken?: Uint8Array

Accessors

  • get l3(): LpL3
  • Extract L3 fields only.

    Returns LpL3

    They may be copied to another LpPacket via Object.assign().

Methods

  • Prepend LpPacket to encoder.

    Parameters

    Returns void

    Error Thrown if fragmentation headers violate invariants:

    • .fragIndex >= .fragCount
    • .fragSeqNum is unset but .fragCount > 1
  • Determine whether any L3 header is present.

    Returns boolean

    LpL3