Project

General

Profile

Actions

Feature #3005

closed

Add callback for successful prefix registration

Added by Andrew Brown over 9 years ago. Updated about 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Start date:
07/02/2015
Due date:
% Done:

50%

Estimated time:

Description

If my application registers a prefix on face A and immediately sends an interest to it on face B, the interest will fail because NFD is still processing the registration request. I currently have to wait some amount of time (at most the interest lifetime) before I am confident that the NFD has processed the request. If we add a callback such as in ndn-cxx (https://github.com/named-data/ndn-cxx/blob/master/src/face.hpp#L397), I will know immediately when I can send the interest.

The plan is to add an optional onRegisterSuccess callback after the required onRegisterFailed callback. onRegisterSuccess is optional for backward compatibility, and it is after onRegisterFailed for consistency across the common client libraries. (For example, in Python an optional parameters must come after required parameters.)

registerPrefix(prefix, onInterest, onRegisterFailed [, onRegisterSuccess] [, flags])


Related issues 1 (0 open1 closed)

Has duplicate NDN-CCL - Bug #3130: RegisterPrefix doesn't provide a callbackClosed08/24/2015

Actions
Actions

Also available in: Atom PDF