<div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif">Kengo,</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">As Alex said, you can modify the existing producer application into a new one. A very simple one could be an application in which there are two folders /existing and /nonExisting. In Application::OnInterest, the application checks whether incoming interests are looking for something under /existing, so it answers. Otherwise there will be no data back.</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">Alex,</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">About the a little bit more complex one, you mean an application which has created a defined number of Data packets before? At the time of starting maybe? Or more like a real we application?</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">Regards,</div><div class="gmail_default" style="font-family:tahoma,sans-serif">Sabet<br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div dir="rtl"><font face="tahoma, sans-serif">خندان باشید</font></div><div dir="rtl"><font face="tahoma, sans-serif">با تشکر</font></div></div></div></div>
<br><div class="gmail_quote">On Mon, Dec 19, 2016 at 1:52 AM, Alex Afanasyev <span dir="ltr"><<a href="mailto:aa@cs.ucla.edu" target="_blank">aa@cs.ucla.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Kengo,<br>
<br>
There are a few ways of achieving this.  The simplest one is to modify the existing Produce application to remove the assumption that all requested data exist and only reply the Interests of your choice.<br>
<br>
A little bit more complex, but future proof, is to write a second producer applications the implements your behavior.  We will be really happy to merge this code into the ndnSIM.<br>
<br>
--<br>
Alex<br>
<div><div class="h5"><br>
> On Nov 24, 2016, at 6:14 AM, 白岩善昭 <<a href="mailto:46rock715@gmail.com">46rock715@gmail.com</a>> wrote:<br>
><br>
> Dear NDN Research Team,<br>
> Hello.<br>
> I want to send an Interest for a Data packet that does not exist. For example, if a Producer has two Data packets /prefix/0 and /prefix/1, I want to send an Interest for /prefix/2. In order to achieve this, I would need to be able to set the full name of the Interest and Data packets.<br>
> When I was working with the the examples on ndnSIM 2.0, I could only find a way to set the prefix.  In ndn-simple.cpp using the Helper "consumerHelper.SetPrefix("/<wbr>prefix")," it would automatically add 0, 1, ... to the end of /prefix/. Then using the "producerHelper.SetPrefix("/<wbr>prefix")" the Producer would return the matching Data packet, assuming it exist.<br>
> I do not want it to be assumed that it exists. Therefore, I would like to know if there is a way to manually set all the names.<br>
> Any help would be greatly appreciated.<br>
> Thank you.<br>
><br>
> Best Regards,<br>
> Kengo Kaneda<br>
<br>
</div></div>______________________________<wbr>_________________<br>
ndnSIM mailing list<br>
<a href="mailto:ndnSIM@lists.cs.ucla.edu">ndnSIM@lists.cs.ucla.edu</a><br>
<a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim" target="_blank" rel="noreferrer">http://www.lists.cs.ucla.edu/<wbr>mailman/listinfo/ndnsim</a><br>
</blockquote></div><br></div>