[Nfd-dev] Adding a new type of NACK

enewberry@email.arizona.edu enewberry at email.arizona.EDU
Thu Feb 9 08:18:10 PST 2017


Matteo,
I assume that ndn-cxx built successfully and that you're trying to use the new NACK type in NFD?
Have you installed the version of ndn-cxx you built so that NFD can find the new headers? If so, try doing a distclean on NFD and completely rebuild it.
Eric
------ Original message------From: Matteo BertolinoDate: Thu, Feb 9, 2017 9:10 AMTo: nfd-dev at lists.cs.ucla.edu;Cc: Subject:[Nfd-dev] Adding a new type of NACK
Good morning,I am trying to add a new type of NACK called "PERSONALIZED" in ndn-cxx.Then I modify the strategy method "after receive NACK" with:if (nack.getReason() == lp::NackReason::PERSONALIZED) {      log << "I received a PERSONALIZED NACK";}But when I compile I have the error:"PERSONALIZED" is not a member of "ndn::lp::NackReason".My steps to add the new NACK were:1) modifying ndn-cxx/src/lp/nack-header.cppadding:case NackReason::PERSONALIZED:os << "MyPersonalNACK";break;in the method operator <<2) adding the equivalent in the method getReason() always in nack-header.cpp3) in nack-header.hpp I add:enum class NackReason {NONE = 0;CONGESTION = 50;...PERSONALIZED = 200;}What did I forgot ?Thanks in advanceBests,Matteo-------------------------------------------------------------------------------This message was sent using EURECOM Webmail: http://webmail.eurecom.fr_______________________________________________Nfd-dev mailing listNfd-dev at lists.cs.ucla.eduhttp://www.lists.cs.ucla.edu
 /mailman/listinfo/nfd-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/nfd-dev/attachments/20170209/84804cb6/attachment.html>


More information about the Nfd-dev mailing list