<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<div>Hi Giuseppe,</div>
<div><br>
</div>
<div>By design, NDN is “one Data packet in response to one Interest”, for flow control and other reasons. (Actually, it can be “one Data packet for multiple interests” if a forwarder has accumulated pending Interests from multiple consumers which all match
 a received Data packet.) The onData callback belongs to the library’s internal pending Interest table. When a matching Data packet is received, the library calls the onData callback and deletes the entry in the pending Interest table, so as you say, it is
 only used once.</div>
<div><br>
</div>
<div>A large object such as an image is usually split up into multiple segments by the producer. Are you using some program to split the image into segments?</div>
<div><br>
</div>
<div>- Jeff T</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>Ndn-interest <<a href="mailto:ndn-interest-bounces@lists.cs.ucla.edu">ndn-interest-bounces@lists.cs.ucla.edu</a>> on behalf of Giuseppe Carella <<a href="mailto:gcarella228@gmail.com">gcarella228@gmail.com</a>><br>
<span style="font-weight:bold">Date: </span>Monday, October 23, 2017 at 5:10:00<br>
<span style="font-weight:bold">To: </span>"<a href="mailto:ndn-interest@lists.cs.ucla.edu">ndn-interest@lists.cs.ucla.edu</a>" <<a href="mailto:ndn-interest@lists.cs.ucla.edu">ndn-interest@lists.cs.ucla.edu</a>>, nfd-dev <<a href="mailto:nfd-dev@lists.cs.ucla.edu">nfd-dev@lists.cs.ucla.edu</a>><br>
<span style="font-weight:bold">Subject: </span>Re: [Ndn-interest] (no subject)<br>
</div>
<div><br>
</div>
<div>
<div>
<div dir="ltr">I forgot to say that I am using ndn-js and one nfd for the forwading.
<br>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">2017-10-23 14:08 GMT+02:00 Giuseppe Carella <span dir="ltr">
<<a href="mailto:gcarella228@gmail.com" target="_blank">gcarella228@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div>
<div>
<div>
<div>
<div>Good morning community,<br>
<br>
</div>
I am trying to send an image from a producer to a consumer. <br>
</div>
 <br>
</div>
</div>
<div>This is the use-case:</div>
<div>-The consumer sends an interest packet to the producer <br>
</div>
<div>-The producer sends a set of data packets to the consumer.</div>
<div><br>
</div>
The problem is that the consumer calls the callback "onData" only once.</div>
<div>I thought that onData once called was always listening the incoming data packets.</div>
<div>
<div>That's the reason why on my main function I call "face.expressInterest(name, onData, onTimeout);" only once. Could it be problem?
<br>
</div>
</div>
<div><br>
</div>
<div>Thank you.</div>
<div>Best regards,</div>
<div>Giuseppe.<br>
</div>
<div><br>
</div>
<br>
</div>
<br>
______________________________<wbr>_________________<br>
Ndn-interest mailing list<br>
<a href="mailto:Ndn-interest@lists.cs.ucla.edu">Ndn-interest@lists.cs.ucla.edu</a><br>
<a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndn-interest" rel="noreferrer" target="_blank">http://www.lists.cs.ucla.edu/<wbr>mailman/listinfo/ndn-interest</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</span>
</body>
</html>