Options
All
  • Public
  • Public/Protected
  • All
Menu

@ndn/lp

This package is part of NDNts, Named Data Networking libraries for the modern web.

This package implements NDNLPv2 link protocol. Currently, this is a minimal implementation that understands:

  • Interest/Data/Nack packets without fragmentation.
  • PIT token.

Index

References

LpPacket

Re-exports LpPacket

LpService

Re-exports LpService

NumericPitToken

Re-exports NumericPitToken

PitToken

Re-exports PitToken

TT

Re-exports TT

Type aliases

PitToken

PitToken: Uint8Array

PIT token field of NDNLP packet.

Variables

Const EVD

EVD: EvDecoder<LpPacket> = new EvDecoder<LpPacket>("LpPacket", TT.LpPacket).setIsCritical(isCritical).add(TT.LpSeqNum, (t, { value }) => t.fragSeqNum = Encoder.asDataView(value).getBigUint64(0)).add(TT.FragIndex, (t, { nni }) => t.fragIndex = nni).add(TT.FragCount, (t, { nni }) => t.fragCount = nni).add(TT.PitToken, (t, { value }) => t.pitToken = value).add(TT.Nack, (t, { decoder }) => t.nack = decoder.decode(NackHeader)).add(TT.LpPayload, (t, { value }) => t.payload = value)

Const IDLE

IDLE: Uint8Array = Encoder.encode(new LpPacket())

Const OVERHEAD

OVERHEAD: number = 0 +1 + 3 + // LpPacket TL1 + 1 + 8 + // LpSeqNum1 + 1 + 2 + // FragIndex1 + 1 + 2 + // FragCount1 + 3 + // LpPayload TL0

Let lastPrefix

lastPrefix: number = 0

Functions

isCritical

  • isCritical(tt: number): boolean

Object literals

Const TT

TT: object

CongestionMark

CongestionMark: number = 832

FragCount

FragCount: number = 83

FragIndex

FragIndex: number = 82

LpPacket

LpPacket: number = 100

LpPayload

LpPayload: number = 80

LpSeqNum

LpSeqNum: number = 81

Nack

Nack: number = l3TT.Nack

NackReason

NackReason: number = l3TT.NackReason

PitToken

PitToken: number = 98

Legend

  • Namespace
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Type alias
  • Type alias with type parameter
  • Interface
  • Interface with type parameter
  • Class
  • Class with type parameter
  • Enumeration

Generated using TypeDoc