<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Giuseppe,</p>
<p>One Interest can only elicit one data. If you know that the data
on the other side is segmented, you need to establish some kind of
convention for segmenting, so that when the consumer receives the
data, the data name that it received makes it clear that there are
more segments.</p>
<p>E.g. if you send an interest for <tt>/ndn/experiment/images/waterfall</tt>,
and the consumer gets a data back called <tt>/ndn/experiment/images/waterfall/s1</tt>,
then it should be clear to the consumer to request <tt>s2, s3,
..., sN, </tt>until the last interest gets NACK'd. From there
you could conclude that you have all the data, and then
concatenate all of the contents to retrieve your image, for
example.</p>
<p>At least, this is how it's done in NLSR to transfer large LSAs.</p>
<p>-Nick<br>
</p>
<br>
<div class="moz-cite-prefix">On 10/23/17 07:10, Giuseppe Carella
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAA0Wn-nieHzqmTpDE=tPQrRe4hZMo2Zi=S2dMVVCTN64n+oFTQ@mail.gmail.com">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<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"
moz-do-not-send="true">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"
moz-do-not-send="true">Ndn-interest@lists.cs.ucla.edu</a><br>
<a
href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndn-interest"
rel="noreferrer" target="_blank" moz-do-not-send="true">http://www.lists.cs.ucla.edu/<wbr>mailman/listinfo/ndn-interest</a><br>
<br>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Nfd-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Nfd-dev@lists.cs.ucla.edu">Nfd-dev@lists.cs.ucla.edu</a>
<a class="moz-txt-link-freetext" href="http://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev">http://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev</a>
</pre>
</blockquote>
<br>
</body>
</html>