Actions
Feature #1275
closedFace: separation of prefix registration and Interest filter
Start date:
Due date:
% Done:
100%
Estimated time:
3.00 h
Description
Scenario¶
App wants to register a more general prefix, but make use of library's dispatch mechanism to invoke different handler based on Name.
Proposed change¶
Have two methods on Face class:
RegisteredPrefix* registerPrefix(Name, successCallback, failureCallback)
Send a prefix registration command using NRD Prefix Registration protocol.
The return value allows app to unregister the prefix.InterestFilter* setInterestFilter(Name, interestHandler)
Cause Face to dispatch Interest under Name to interestHandler.
The return value allows app to cancel the filter.
To get Interest into an handler, app needs to:
- registerPrefix to get Interest into the Face
- setInterestFilter to get Interest into the handler
Updated by Junxiao Shi over 10 years ago
- Tracker changed from Task to Feature
This feature becomes more relevant when we see 4 RIB entries registered by repo-ng.
repo-ng calls setInterestFilter
once for each command verb. This results in one RIB entries per command.
After this feature is implemented, repo-ng could register only one RIB entry covering all commands, and still use the dispatching mechanism provided by setInterestFilter
.
Updated by Junxiao Shi over 10 years ago
- Description updated (diff)
- Estimated time set to 3.00 h
Updated by Alex Afanasyev over 10 years ago
- Category set to Base
- Status changed from New to In Progress
- Assignee set to Alex Afanasyev
- Target version set to v0.2
- % Done changed from 0 to 20
Updated by Alex Afanasyev over 10 years ago
- Status changed from In Progress to Code review
- % Done changed from 20 to 100
Updated by Alex Afanasyev over 10 years ago
- Status changed from Code review to Closed
Actions