<div dir="ltr"><div>Actually I did not wanted to manipulate the original Name field of Interest because it will have numerous reference in whole code and all of those functionality will be disturbed. That why I was adding extra fields. But I can give it a try as extra added fields are too difficult to handle (for me) because of many errors and technical reasons.</div><br></div><br><div class="gmail_quote"><div dir="ltr">On Sun, 27 May 2018 at 00:08, Mudasir Qazi <<a href="mailto:mudasirqazi00@gmail.com">mudasirqazi00@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="auto">Thanks for the clarification. And thanks for reply. I really really appreciate your time and effort on this forum. </div><div dir="auto"><br></div><div>Actually I need a std::string type of field carried in Interest, manipulated at intermediate nodes and reach to producer. Producer will read it and do its actions. <br></div><div>For this purpose, I have tired following options:<br></div><div>1. I created a list of Name as Interest field but it did not worked out. Does not correctly carried to the producer.<br></div><div>2. I created vector of string but it also did not worked out. Gives errors in wireEncoding and wireDecoding.<br></div><div>3. I created a new Name field but it also did not worked out. Gives tlv related errors.<br></div><div><br></div><div>In total I have spent a lot of time, just a lot of time these tries.</div><div>Can you please suggest the best and easiest way?</div><div>As adding new Name type of field also did't worked, I was planning to use the already added Name field. I will manipulate it at consumer and transmit. Intermediate nodes and producer will read it and do their work. Wold it work? Is there any better way?<br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Sat, May 26, 2018, 11:57 PM Junxiao Shi <<a href="mailto:shijunxiao@email.arizona.edu" target="_blank">shijunxiao@email.arizona.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto">Hi Mudasir<br><div class="gmail_quote" dir="auto"><div dir="ltr"><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>I have tried adding another "Name" type of field in Interest packet.</div></div></blockquote></div><div dir="auto">What's the semantics of this new field?</div><div dir="auto">It's <i>usually</i> a wrong design if you need a secondary name.</div><div dir="auto"><br></div><div dir="auto">* To guide forwarding: use ForwardingHint field.</div><div dir="auto">* To give additional parameters to the producer: append those parameters to the name. In case producer must return a Data generated by some other node, encapsulate that Data into a new Data that matches the Interest.</div><div dir="auto">* To indicate who expressed the Interest: you shouldn't indicate who expressed the Interest, unless it changes the Data. In that case, see the second point.</div><div dir="auto"><br></div><div class="gmail_quote" dir="auto"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><br></div><div><b>in wireDecode method:</b></div><div><span style="font-family:monospace,monospace">m_Name2.wireDecode(m_wire.get(tlv::Name2));</span></div><div><br></div><div><b>Error:</b></div><div>When
 I'm running scenario, its builds successfully. But after linking files 
and before launching the simulator it gives following error:</div><div><br></div><div><span style="font-family:monospace,monospace">terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<ndn::Block::Error> >'<br>  what():  (Block::get) Requested a non-existed type [10] from Block</span></div></div></blockquote></div><div dir="auto"><br></div><div dir="auto">This error message indicates Nonce element (TLV-TYPE 0x0A ie decimal 10) is missing.</div><div dir="auto"><br></div><div dir="auto">Yours, Junxiao</div><div class="gmail_quote" dir="auto"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
</blockquote></div></div>
</blockquote></div></blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><span style="font-family:georgia,serif">Regards,<br></span></div><div><span style="font-family:georgia,serif">Mudasir Qazi<br></span></div></div></div></div></div></div></div></div></div>