Class LpPacket

NDNLPv2 packet.

Hierarchy (view full)

Constructors

Properties

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

L3 payload.

Remarks

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

    Remarks

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

Methods

  • Prepend LpPacket to encoder.

    Parameters

    Returns void

    Throws

    Error Thrown if fragmentation headers violate invariants:

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

    Returns boolean

    See

    LpL3

Generated using TypeDoc