new PIT(nameTree) → {PIT}
Pending Interest Table
Parameters:
Name | Type | Description |
---|---|---|
nameTree |
NameTree | the nameTree to build the table on top of |
- Source:
Returns:
a new PIT
- Type
- PIT
Methods
-
<static> installNDN(NDN)
-
Import ndn-lib into the PIT scope
Parameters:
Name Type Description NDN
Object the NDN-js library in object form - Source:
-
insertPitEntry(element, interest, faceIDorCallback) → {PIT}
-
Create and insert a new PITEntry
Parameters:
Name Type Argument Description element
Buffer The raw interest data packet interest
Object <optional>
the ndn.Interest object faceIDorCallback
Number | function either a numerical faceID or a callbackFunction - Source:
Returns:
the PIT (for chaining)- Type
- PIT
-
lookup(data) → {Object}
-
Lookup the PIT for Entries matching a given data object
Parameters:
Name Type Description data
Object The ndn.Data object - Source:
Returns:
results: an object with two properties, pitEntries and faces, which are an array of matching PITEntrys and an integer faceFlag for use with Interfaces.dispatch, respectively.- Type
- Object