new PitEntry(element, interest, faceIDorCallback) → {PitEntry}
PIT Entry
Parameters:
Name | Type | Argument | Description |
---|---|---|---|
element |
Buffer | The raw interest data packet | |
interest |
Object |
<optional> |
the ndn.Interest Object |
faceIDorCallback |
number | function | Either the faceID of the face this interest was received on, or a callback function to receive any matching data |
- Source:
Returns:
- the entry
- Type
- PitEntry
Methods
-
consume() → {PitEntry}
-
Consume the PitEntry (assuming it is attached to a the nameTree)
- Source:
Returns:
in case you want to do anything with it afterward- Type
- PitEntry
-
matches(data) → {Boolean}
-
Test whether the PitEntry is fulfilled by a data object
Parameters:
Name Type Description data
Object the ndn.Data object - Source:
Returns:
- Type
- Boolean