Project

General

Profile

Feature #3919

Scoped prefix registration

Added by Alex Afanasyev over 2 years ago. Updated 5 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Base
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
3.00 h

Description

Provide type(s) to hold a RegisteredPrefixId or InterestFilterId. When exiting the scope containing an instance of that type, the prefix or InterestFilter is unregistered.


Related issues

Related to ndn-cxx - Feature #4316: Scoped expressed InterestClosed

Blocked by ndn-cxx - Task #4782: Install implementation detail headersClosed2018-12-06

Precedes ndn-cxx - Task #4885: Remove deprecated const Id* of face-related handlesNew2019-08-29

History

#1 Updated by Junxiao Shi almost 2 years ago

  • Subject changed from Scoped prefix registration and scoped expressed Interest to Scoped prefix registration
  • Description updated (diff)
  • Estimated time set to 3.00 h

"scoped expressed Interest" is split to #4316.

Scoped RegisteredPrefixId potentially conflicts with #2658 because there would be no way to notify that the unregistration has failed.

#2 Updated by Junxiao Shi about 1 year ago

  • Status changed from New to In Progress
  • Assignee set to Junxiao Shi
  • Target version set to v0.7

#3 Updated by Junxiao Shi about 1 year ago

  • % Done changed from 0 to 50

https://gerrit.named-data.net/#/c/ndn-cxx/+/4876 ScopedRegisteredPrefixHandle.

ScopedInterestFilterHandle will come in another commit.

#4 Updated by Junxiao Shi 10 months ago

  • Blocked by Task #4782: Install implementation detail headers added

#5 Updated by Junxiao Shi 8 months ago

  • Status changed from In Progress to Closed
  • % Done changed from 50 to 100

#6 Updated by Junxiao Shi 6 months ago

  • Status changed from Closed to In Progress
  • % Done changed from 100 to 50

Similar to #2865, RegisteredPrefixHandle and InterestFilterHandle are using memory address as internal identification. They should be changed in this commit.

#7 Updated by Junxiao Shi 6 months ago

  • % Done changed from 50 to 60

https://gerrit.named-data.net/5333
I'm attempting to design a RecordContainer struct that replaces ContainerWithOnEmptySignal.
It will provide ID allocation for all three handle types, and allow simplification for face-impl.hpp, and in particular eliminate PendingInterest::m_deleter function object in favor of a cheaper virtual function call.

#8 Updated by Junxiao Shi 6 months ago

  • Status changed from In Progress to Code review
  • % Done changed from 60 to 100

https://gerrit.named-data.net/5333 is now complete. RecordId, a self-incrementing counter, identifies a handle within its container.
Currently const Id* pointers are still being used between Handle and Face. I plan to keep these as is until the removal of const Id* pointer types in #4885.

#9 Updated by Junxiao Shi 5 months ago

  • Status changed from Code review to Closed

#10 Updated by Davide Pesavento 5 months ago

  • Precedes Task #4885: Remove deprecated const Id* of face-related handles added

#11 Updated by Davide Pesavento 5 months ago

Also available in: Atom PDF