<div dir="ltr">
<div>Hello,</div><div><br></div><div>What command did you run when you use ndnSIM. Consumers and producers in ndnSIM will print out logs only if "NS_LOG" variables are defined as 
ndn.Consumer and ndn.Producer respectively.</div><div><br></div><div>For example,</div><div>ndn.Consumer contains "OnData", "SendPacket", and "OnTimeout".</div><div>ndn.Producer contains "OnInterest".</div><div>If you want ndnSIM to show the log of both "OnData" and "OnInterest", you may need to put prefix before the ./waf command such as:</div><div><br></div><div>
<b>NS_LOG=ndn.Consumer:ndn.Producer ./waf --run=xxx </b><br></div><div><br></div><div>If the packet does not actually arrive, you will see OnTimeout instead, so I do believe the packets are arriving.<br><br>Hope this help!<br>Mark <br></div><div><br></div><div>Begin forwarded message:</div><br><div style="margin:0px"><span style="font-family:-webkit-system-font,Helvetica Neue,Helvetica,sans-serif;color:rgb(0,0,0)"><b>From: </b></span><span style="font-family:-webkit-system-font,Helvetica Neue,Helvetica,sans-serif">Puming Fang via ndnSIM <<a href="mailto:ndnsim@lists.cs.ucla.edu" target="_blank">ndnsim@lists.cs.ucla.edu</a>><br></span></div><div style="margin:0px"><span style="font-family:-webkit-system-font,Helvetica Neue,Helvetica,sans-serif;color:rgb(0,0,0)"><b>Subject: </b></span><span style="font-family:-webkit-system-font,Helvetica Neue,Helvetica,sans-serif"><b>[ndnSIM] App::OnData(data) is not called when Data Arrives</b><br></span></div><div style="margin:0px"><span style="font-family:-webkit-system-font,Helvetica Neue,Helvetica,sans-serif;color:rgb(0,0,0)"><b>Date: </b></span><span style="font-family:-webkit-system-font,Helvetica Neue,Helvetica,sans-serif">March 27, 2023 at 11:11:32 AM PDT<br></span></div><div style="margin:0px"><span style="font-family:-webkit-system-font,Helvetica Neue,Helvetica,sans-serif;color:rgb(0,0,0)"><b>To: </b></span><span style="font-family:-webkit-system-font,Helvetica Neue,Helvetica,sans-serif"><a href="mailto:ndnsim@lists.cs.ucla.edu" target="_blank">ndnsim@lists.cs.ucla.edu</a><br></span></div><div style="margin:0px"><span style="font-family:-webkit-system-font,Helvetica Neue,Helvetica,sans-serif;color:rgb(0,0,0)"><b>Reply-To: </b></span><span style="font-family:-webkit-system-font,Helvetica Neue,Helvetica,sans-serif">Puming Fang <<a href="mailto:pfang@umass.edu" target="_blank">pfang@umass.edu</a>><br></span></div><br><div><div style="overflow-wrap: break-word;"><div dir="auto" style="overflow-wrap: break-word;"><p>Dear NDN team,</p><p>I
 am currently working with ndnsim and have a query regarding the 
handling of Interest and Data packets. While attempting to implement 
certain operations upon the arrival of these packets, I have noticed 
that while the "App::OnInterest(Interest)" function works as expected, 
the "App::OnData(Data)" function does not seem to be called when the 
Data packet arrives. My intention is to log some information upon the 
arrival of Data packets.</p><p>I can confirm that the Data packets are 
indeed arriving at the node and being forwarded correctly. Could you 
please advise me on what could be causing this issue?</p><p>Thank you for your time and assistance.</p><p>Best,
Puming</p></div></div>_______________________________________________<br>ndnSIM mailing list<br><a href="mailto:ndnSIM@lists.cs.ucla.edu" target="_blank">ndnSIM@lists.cs.ucla.edu</a><br><a href="https://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim" target="_blank">https://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a></div>

</div>