<p dir="ltr">Hi again,</p>
<p dir="ltr">Sorry. I want to port some changes in these functions which are defined in model/wire/ndnsim.h:<br>
- Interest::GetSerializedSize<br>
- Interest::Serialize<br>
- Interest::Deserialize<br>
Which will lead to modifying ndn-header, right? But header in v 2.1 is much simpler than in v 1. What has been changed here?</p>
<p dir="ltr">Thanks,<br>
Sabet</p>
<div class="gmail_quote">On 2 May 2016 09:11, "Alex Afanasyev" <<a href="mailto:aa@cs.ucla.edu">aa@cs.ucla.edu</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
> On Apr 30, 2016, at 11:59 PM, Muhammad Hosain Abdollahi Sabet <<a href="mailto:M.AbdollahiSabet@Mail.sbu.ac.ir">M.AbdollahiSabet@Mail.sbu.ac.ir</a>> wrote:<br>
><br>
> Alex,<br>
><br>
> What is equivalent of /model/wire/ndnsim in V.2?<br>
><br>
<br>
The wire encoding is embedded directly in each of the data structure: ndn-cxx/src/interest.cpp, ndn-cxx/src/data.cpp, etc.  Some general-purpose wire-encoding functions are in ndn-cxx/src/encoding.<br>
<br>
--<br>
Alex<br>
<br>
><br>
> Thanks,<br>
> Sabet<br>
><br>
><br>
><br>
> -----Original Message-----<br>
> From: Muhammad Hosain Abdollahi Sabet<br>
> Sent: Tue 4/26/2016 4:42 PM<br>
> To: 'Alex Afanasyev'<br>
> Cc: 'ndnsim'<br>
> Subject: RE: [ndnSIM] Porting scenarios to ndnSIM 2.1<br>
><br>
> Alex,<br>
><br>
> Thank you so much. You're saving lives!!<br>
><br>
> Regards,<br>
> Sabet<br>
><br>
> -----Original Message-----<br>
> From: Alex Afanasyev [mailto:<a href="mailto:aa@cs.ucla.edu">aa@cs.ucla.edu</a>]<br>
> Sent: Thursday, April 14, 2016 6:46 AM<br>
> To: Muhammad Hosain Abdollahi Sabet<br>
> Cc: <a href="mailto:ndnsim@lists.cs.ucla.edu">ndnsim@lists.cs.ucla.edu</a><br>
> Subject: Re: [ndnSIM] Porting scenarios to ndnSIM 2.1<br>
><br>
><br>
> > On Apr 2, 2016, at 11:43 AM, Muhammad Hosain Abdollahi Sabet <<a href="mailto:M.AbdollahiSabet@mail.sbu.ac.ir">M.AbdollahiSabet@mail.sbu.ac.ir</a>> wrote:<br>
> ><br>
> > Hi everyone,<br>
> > Is there any guide on how one can port simulation scenarios wrote for ndnSIM 1? Currently I have a simulation in which has some modifications in  model/ndn-interest.h/.cc, model/wire/ndnsim.h/.cc, ndn.cxx/detail/pending-interests-container.h,  model/fw/ndn-forwarding-strategy.h/.cc. I know NFD is being used directly in ndnSIM 2.1 and there has been some changes in ndn-cxx. But honestly I'm not much familiar with them and need some guide.<br>
><br>
> It very much depends on how extensive are your changes.<br>
><br>
> To modify interest abstraction and wire encoding, you need to look at<br>
><br>
> - ndnSIM/ndn-cxx/src/interest.hpp<br>
> - ndnSIM/ndn-cxx/src/interest.cpp<br>
><br>
> For application PIT (ndn.cxx/...), you can look at<br>
><br>
> - ndnSIM/ndn-cxx/src/detail/pending-interests.hpp, but there is also logic in ndnSIM/ndn-cxx/src/detail/face-impl.hpp<br>
><br>
> For forwarding strategy, depending on your specific interest, it could be part of the strategy interface<br>
><br>
> - ndnSIM/NFD/daemon/fw/strategy.hpp<br>
> - ndnSIM/NFD/daemon/fw/strategy.cpp<br>
> - ndnSIM/NFD/daemon/fw/*-strategy.*pp  (examples of implemented strategies)<br>
><br>
> or if you need to change some of the forwarding logic (which we call now "pipelines"), you may look into<br>
><br>
> - ndnSIM/NFD/daemon/fw/forwarder.hpp<br>
> - ndnSIM/NFD/daemon/fw/forwarder.cpp<br>
><br>
> ---<br>
> Alex<br>
><br>
><br>
><br>
<br>
<br>_______________________________________________<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" rel="noreferrer" target="_blank">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><br>
<br></blockquote></div>