<div dir="auto"><div>Hi Jhaell</div><div dir="auto"><br></div><div dir="auto">This behavior is by design.</div><div dir="auto"><br></div><div dir="auto">When you touch a file, the file is stored in the filesystem of node1, not its cache (Content Store).</div><div dir="auto"><br></div><div dir="auto">When you run ndnputchunks on node1, the program creates Data packets from the file, but those Data packets only exist within ndnputchunks, and not in the cache (Content Store).</div><div dir="auto"><br></div><div dir="auto">When you run ndncatchunks on node2, the program sends Interests to retrieve the file, which pulls the Data packets from the ndnputchunks program.</div><div dir="auto">Only at this time, the Data packets could enter the cache (Content Store) on both nodes.</div><div dir="auto">The original file would still exist in the filesystem of node1; it would not disappear.</div><div dir="auto"><br></div><div dir="auto">Yours, Junxiao<br><br><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">On Sun, May 15, 2022, 16:32 Jhaell Jimenez via Mini-NDN <<a href="mailto:mini-ndn@lists.cs.ucla.edu">mini-ndn@lists.cs.ucla.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p style="text-align:center"><font color="red"><strong>External Email</strong><br></font></p><div dir="ltr">Hello all,<div><br></div><div>When attempting to transfer files in MiniNDN, I use ndncatchunks and ndnputchunks. But I am curious if there is a method to have a node create its own file (lets say a .txt file) and then transfer it to another node.<br><br>For example: <br>node1 creates .txt file (using touch sample.txt) and is now stored in its cache<br>node1 then uses ndnputchunks to advertise it<br>node2 then requests the file prefix using ndncatchunks<br><br>I have tried doing this, but it seems it only creates a copy of it—not a complete transfer.</div><div>The file is moved to node2, but also node1 <i>still </i>has the txt file in its cache. <br><br>If there are any ideas on how to solve my issue? or methods already done? Please let me know. <br></div><div><br></div><div>Thank you all,</div><div><br></div><div>-</div><div>J.</div></div>
_______________________________________________<br>
Mini-NDN mailing list<br>
<a href="mailto:Mini-NDN@lists.cs.ucla.edu" target="_blank" rel="noreferrer">Mini-NDN@lists.cs.ucla.edu</a><br>
<a href="https://www.lists.cs.ucla.edu/mailman/listinfo/mini-ndn" rel="noreferrer noreferrer" target="_blank">https://www.lists.cs.ucla.edu/mailman/listinfo/mini-ndn</a><br>
</blockquote></div></div></div>