Get unlimited public & private packages + team-based management with npm Teams.Learn more »

@ndn/segmented-object

0.0.20191223-beta.1 • Public • Published

@ndn/segmented-object

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

This package implements functions to publish and retrieve segmented objects.

The fetch function:

  • supports version discovery via CanBePrefix.
  • supports version discovery via RDR protocol.
  • supports manifest.
  • allows specifying segment range.
  • supports segment numbers.
  • supports byte offsets.
  • supports multiple naming conventions.
  • has Interest pipelining, congestion control, and loss recovery.
  • verifies packets with trust schema.
  • emits events as segments arrive.
  • outputs in-order data chunks as a readable stream.
  • outputs completely reassembled object via Promise.

The serve function:

  • generates segments of fixed size.
  • generates segments of available data as Interest arrives, to minimize delivery latency.
  • responds to version discovery Interests with CanBePrefix.
  • responds to RDR protocol.
  • generates manifest.
  • supports segment numbers.
  • supports byte offsets.
  • supports multiple naming conventions.
  • signs packets with fixed key.
  • signs packets with trust schema.
  • reports when all segments have been retrieved at least once.

Install

npm i @ndn/segmented-object

DownloadsWeekly Downloads

1

Version

0.0.20191223-beta.1

License

ISC

Unpacked Size

36.6 kB

Total Files

30

Last publish

Collaborators

  • avatar