[Mini-NDN] custom strategy

sepehr abdous sepehrabdous1375 at gmail.com
Sat Nov 3 02:59:30 PDT 2018


Hello,
What is exactly the %FD%03 for?
I copied the exact same code of best-route-strategy(both hpp and cpp) to
another file named power-of-two-strategy
and changed the best-route names in the code to power-of-two-strategy.

But when I want to use ./waf install I encounter the following error:
[image: image.png]

Best,
Sepehr

On Thu, Nov 1, 2018 at 7:08 PM Ashlesh Gawande (agawande) <
agawande at memphis.edu> wrote:

>
>    - Compile and install NFD again using waf under NFD folder.
>    - Outside of Mini-NDN, run NFD and try setting the strategy on a name
>    prefix:
>       - nfdc strategy set /prefix strategy <strategy-name>
>    - The <strategy-name> is the one you set in getStrategyName in your
>    strategy.
>       - For example, ASF: /localhost/nfd/strategy/asf/%FD%03
>       -
>       https://github.com/named-data/NFD/blob/f48d0809f085b32670b4163328ce88c6cad0291d/daemon/fw/asf-strategy.cpp#L67
>       - If the nfdc command is successful, in Mini-NDN you can call this
>    function with appropriate parameters:
>       -
>       https://github.com/named-data/mini-ndn/blob/6f7a64fc75065191035141e3a8c33e149bef27f9/ndn/apps/nfdc.py#L66
>
> Ashlesh
> On 11/1/18 7:10 AM, sepehr abdous wrote:
>
> Hello all,
>
> I defined a custom strategy in the mini-ndn/NFD/daemon/fw/ directory.
> How can I add my strategy to NFD so that I can use it by nfdc in my
> mini-ndn experiments?
>
> Best,
> Sepehr
>
> _______________________________________________
> Mini-NDN mailing listMini-NDN at lists.cs.ucla.eduhttp://www.lists.cs.ucla.edu/mailman/listinfo/mini-ndn
>
>

-- 
Sepehr Abdous
Faculty: abdous at ce.sharif.edu
Yahoo mail: sepehrabdous at yahoo.com
Cellphone:+989129751873
School of computer engineering
Sharif University of Technology
Tehran, Iran
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/mini-ndn/attachments/20181103/1c81c681/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 81778 bytes
Desc: not available
URL: <http://www.lists.cs.ucla.edu/pipermail/mini-ndn/attachments/20181103/1c81c681/attachment-0001.png>


More information about the Mini-NDN mailing list