Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Options

Index

Properties

bufferAhead?: number

How many chunks ahead of latest request to store in buffer. This is ignored if the ChunkSource supports getChunk() function.

A larger number can reduce latency of fulfilling Interests if ChunkSource is slow. A smaller number reduces memory usage.

default

16

bufferBehind?: number

How many chunks behind latest request to store in buffer. This is ignored if the ChunkSource supports getChunk() function.

After processing an Interest requesting segment i, subsequent Interests requesting segment before i - bufferBehind cannot be answered.

A larger number or even Infinity allows answering Interests requesting early segments, at the cost of buffering many generated packets in memory. A smaller number reduces memory usage, at the risk of not being able to answer some Interests, which would become a problem in the presence of multiple consumers.

default

Infinity

contentType?: number

Data ContentType.

default

0

freshnessPeriod?: number

Data FreshnessPeriod (in milliseconds).

default

60000

segmentNumConvention?: SegmentConvention

Choose a segment number naming convention. Default is Segment from @ndn/naming-convention2 package.

signer?: Signer

A private key to sign Data. Default is SHA256 digest.

Generated using TypeDoc