Project

General

Profile

Feature #4777

Develop API for typed name components in naming convention

Added by Junxiao Shi 10 months ago. Updated 7 months ago.

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

100%

Estimated time:
6.00 h

Description

Change/extend Name and name::Component APIs to support typed name components for segment number, version number, timestamp, and sequence number.


Related issues

Blocked by NDN Specifications - Feature #4577: Naming conventions: use typed name components instead of markersClosed

History

#1 Updated by Junxiao Shi 10 months ago

  • Blocked by Feature #4577: Naming conventions: use typed name components instead of markers added

#2 Updated by Junxiao Shi 10 months ago

  • Tags set to Packet03Transition
  • Status changed from New to In Progress

#3 Updated by Junxiao Shi 10 months ago

  • % Done changed from 0 to 10

https://gerrit.named-data.net/#/c/ndn-cxx/+/5043/ patchset1 has the design. I'm using "version" as a demonstration.

#4 Updated by Junxiao Shi 10 months ago

https://gerrit.named-data.net/#/c/ndn-cxx/+/5043/ patchset1 has a convention argument in each API, which could cause difficulty for eventual removal.

patchset3 is an alternate design that only offers global settings for encoding and decoding conventions. While it is easier for eventual removal, every part of an application would have to adopt the same convention at least for encoding. Suppose for some reason PSync wants REV2 (to talk to other nodes using new convention) and management client wants REV1 (to talk to legacy application), an application using both would have to switch the global encoding convention setting back-and-forth, and won't work at all if it's multi-threaded.

#5 Updated by Junxiao Shi 7 months ago

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

#6 Updated by Junxiao Shi 7 months ago

  • Status changed from Code review to Closed
  • % Done changed from 60 to 100

Also available in: Atom PDF