Interface ConsumerContext

Progress of Data retrieval.

This is a Promise that resolves with the retrieved Data and rejects upon timeout, annotated with the Interest and some counters.

interface ConsumerContext {
    interest: Interest;
    nRetx: number;
    rtt: undefined | number;
}

Hierarchy

  • Promise<Data>
    • ConsumerContext

Properties

Properties

interest: Interest

Interest packet, after any modifications.

nRetx: number

Number of retransmissions sent so far.

The initial Interest does not count as a retransmission.

rtt: undefined | number

Duration (milliseconds) between last Interest transmission and Data arrival.

This is a valid RTT measurement if nRetx is zero.