Actions
Feature #3329
closedController: client for StatusDataset
Start date:
Due date:
% Done:
100%
Estimated time:
6.00 h
Description
Add StatusDataset client functionality into ndn::nfd::Controller
.
Currently, ndn::nfd::Controller
contains a client for NFD ControlCommand.
An application can easily execute a command on the local NFD with controller.start<FaceCreateCommand>
, and need not know the details such as the exact name for this command.
However, there's a disparity for NFD StatusDataset, which is another major part of NFD Management protocol.
An application must manually construct the name of a dataset, use SegmentFetcher
to obtain the contents, and then manually parse the dataset.
To simplify applications, StatusDataset client shall be integrated into ndn::nfd::Controller
.
An application can request a dataset using a syntax like:
controller.fetch<FaceDataset>(onSuccess, onFailure, options);
controller.fetch<FaceQueryDataset>(faceQueryFilter, onSuccess, onFailure, options);
Actions