<div dir="ltr"><div><div><br>Well Alex, assume you want to add this sentence "This is a test content" to content of a packet, what hops you need to fulfill it? If you can simply mention these hops. <br>Actually, according to current structure, the only evil way that I found is creating a buffer and feeding it to the packet as a argument, which is not enough pleasant. Please suggest a better alternative...<br>

<br></div>----<br></div><i>chavoosh</i><br><div><div><div><br></div></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, May 13, 2014 at 10:19 PM, Alex Afanasyev <span dir="ltr"><<a href="mailto:alexander.afanasyev@ucla.edu" target="_blank">alexander.afanasyev@ucla.edu</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hi Chavoosh,<div><br></div><div>You just need to modify the Producer implementation (or write your own producer class).  For the payload, you could use any of the methods to create payload "Packet" (<a href="http://www.nsnam.org/doxygen/classns3_1_1_packet.html" target="_blank">http://www.nsnam.org/doxygen/classns3_1_1_packet.html</a>), to which you will be adding NDN header/footer.</div>

<div><br></div><div>---</div><div>Alex</div><div><div class="h5"><div><br><div><div>On May 13, 2014, at 9:38 AM, chavoosh ghasemi <<a href="mailto:chavoosh.ghasemi.off@gmail.com" target="_blank">chavoosh.ghasemi.off@gmail.com</a>> wrote:</div>

<br><blockquote type="cite"><div dir="ltr"><div><div>Hi<br><br></div>I want change payload of content packet and fill it by custom payload in response of different interest packets. How it can be done? <br></div><div> <br>

</div><div><br></div>Best regards<br clear="all">

<div><br>-- <br><div dir="ltr"><span><font><font color="#888888"><span style="color:rgb(0,0,153);font-family:georgia,serif"><i><b><font color="#888888">----------------------------</font><br>

Chavoosh Ghasemi</b></i><br><span style="color:rgb(153,153,0)"><br><font style="color:rgb(102,102,0)">Information Technology M.S </font></span></span><font style="color:rgb(102,102,0)">- </font></font></font></span><span><font><font color="#888888"><span style="color:rgb(0,0,153);font-family:georgia,serif"><span style="color:rgb(153,153,0)"><font style="color:rgb(102,102,0)">Computer Networks </font></span></span></font></font></span><br style="font-family:georgia,serif">



<span><font><font color="#888888"><span style="color:rgb(0,0,153);font-family:georgia,serif"><font style="color:rgb(102,102,0)">Sharif University-Computer Engineer Department</font><i style="color:rgb(102,102,0)"><br></i></span></font></font></span><font size="1"><b><i style="color:rgb(102,102,0)"><br>



<span style="color:rgb(153,153,0)">"The </span><i style="color:rgb(153,153,0)">quieter</i><span style="color:rgb(153,153,0)"> you become, the </span><i style="color:rgb(153,153,0)">more you can hear"</i></i></b></font></div>




</div></div></blockquote></div><br></div></div></div></div></blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr"><span><font><font color="#888888"><span style="color:rgb(0,0,153);font-family:georgia,serif"><i style="color:rgb(0,0,0)"><b><font color="#888888">----------------------------</font><br>

Chavoosh Ghasemi</b></i><br><span style="color:rgb(153,153,0)"><br><font style="color:rgb(102,102,0)">Information Technology M.S </font></span></span><font style="color:rgb(102,102,0)">- </font></font></font></span><span><font><font color="#888888"><span style="color:rgb(0,0,153);font-family:georgia,serif"><span style="color:rgb(153,153,0)"><font style="color:rgb(102,102,0)">Computer Networks </font></span></span></font></font></span><br style="font-family:georgia,serif">

<span><font><font color="#888888"><span style="color:rgb(0,0,153);font-family:georgia,serif"><font style="color:rgb(102,102,0)">Sharif University-Computer Engineer Department</font><i style="color:rgb(102,102,0)"><br></i></span></font></font></span><font size="1"><b><i style="color:rgb(102,102,0)"><span><br>

<span style="color:rgb(153,153,0)">"The </span><i style="color:rgb(153,153,0)">quieter</i><span style="color:rgb(153,153,0)"> you become, the </span><i style="color:rgb(153,153,0)">more you can hear"</i></span></i></b></font></div>


</div>