<div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:large">Hi, Davide and Junxiao.</div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:large"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:large">Got it, it makes sense. I believe this is enough for now. Thanks a lot for the help.<br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:large"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:large">Best,</div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:large">Otávio</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Em qua., 4 de out. de 2023 às 15:45, Davide Pesavento <<a href="mailto:davidepesa@gmail.com">davidepesa@gmail.com</a>> escreveu:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Otávio,<br>
<br>
On Tue, Oct 3, 2023 at 4:00 PM Otávio Augusto via Ndn-interest<br>
<<a href="mailto:ndn-interest@lists.cs.ucla.edu" target="_blank">ndn-interest@lists.cs.ucla.edu</a>> wrote:<br>
><br>
> Hello, Junxiao. Thanks a lot for the quick response.<br>
><br>
> More specifically, I need to list, create, and destroy operations for faces and routes at runtime. My use case requires these operations autonomously and based on some network states, which is why using the command line (nfdc) does not satisfy me.<br>
><br>
> I believe that NFD Management Protocol is a viable solution to my problem, perhaps with a greater workload than I would like. If I understand correctly, I have to use ndn-cxx together with the rules defined by the protocol to perform the operations I need. For example, to request the creation of a face, I could use as described in <a href="https://redmine.named-data.net/projects/nfd/wiki/FaceMgmt#Create-a-face" rel="noreferrer" target="_blank">https://redmine.named-data.net/projects/nfd/wiki/FaceMgmt#Create-a-face</a><br>
><br>
<br>
That's correct, but please note that you don't have to reimplement the<br>
management protocol from scratch with Interest and Data. ndn-cxx<br>
already provides a higher level API that you can use to manage<br>
(certain aspects of) NFD directly from your application. See for<br>
instance ndn::nfd::Controller<br>
(<a href="https://docs.named-data.net/ndn-cxx/current/doxygen/classndn_1_1nfd_1_1Controller.html" rel="noreferrer" target="_blank">https://docs.named-data.net/ndn-cxx/current/doxygen/classndn_1_1nfd_1_1Controller.html</a>)<br>
and other classes in the ndn::nfd namespace. The documentation isn't<br>
great, but as Junxiao said, this is exactly the same API used by nfdc,<br>
so you can take a look at nfdc's code for inspiration.<br>
<br>
Best,<br>
Davide<br>
</blockquote></div>