FwcontentCopyTag  is <span id="result_box" class="short_text" lang="en"><span class="">Constructor </span></span><span id="result_box" class="short_text" lang="en"><span class="">tag  of me  ,but i can not add it to the data.<br></span></span><div><br></div><div><br></div><div style="font-size: 12px;font-family: Arial Narrow;padding:2px 0 2px 0;">------------------ 原始邮件 ------------------</div><div style="font-size: 12px;background:#efefef;padding:8px;"><div><b>发件人:</b> "Spyridon (Spyros) Mastorakis"<mastorakis@cs.ucla.edu>; </div><div><b>发送时间:</b> 2017年4月15日(星期六) 上午10:55</div><div><b>收件人:</b> "黑客"<1602883373@qq.com>; </div><div><b >抄送:</b> "ndnsim"<ndnsim@lists.cs.ucla.edu>; </div><div><b>主题:</b> Re: [ndnSIM] How to add a tag to the data?</div></div><div><br></div>Hi,<div class=""><br class=""></div><div class="">I think I responded to your question yesterday too:</div><div class=""><div class=""><br class=""></div><div class="">Please take a look here:</div><div class=""><br class=""></div><div class=""><a href="http://www.lists.cs.ucla.edu/pipermail/ndnsim/2016-December/003250.html" class="" target="_blank">http://www.lists.cs.ucla.edu/pipermail/ndnsim/2016-December/003250.html</a></div><div class=""><br class=""></div><div class="">Thanks,</div></div><div class=""><br class=""></div><div class=""><div class="">
<div class=""><div class=""><div class=""><span class="" style="float: none; display: inline !important;">Spyridon (Spyros) Mastorakis</span><br class=""><span class="" style="float: none; display: inline !important;">Personal Website: </span><a href="http://cs.ucla.edu/%7Emastorakis/" class="" target="_blank">http://cs.ucla.edu/~mastorakis/</a><br class=""><span class="" style="float: none; display: inline !important;">Internet Research Laboratory</span><br class=""><span class="" style="float: none; display: inline !important;">Computer Science Department</span><br class=""><span class="" style="float: none; display: inline !important;">UCLA</span></div><div class=""><br class=""></div></div></div></div><div><blockquote type="cite" class=""><div class="">On Apr 14, 2017, at 6:15 PM, 黑客 <<a href="mailto:1602883373@qq.com" class="" target="_blank">1602883373@qq.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">I want to add a tag to the data before the producer sent data,for examole:<br class=""><br class=""><br class="">void<br class="">Producer::OnInterest(shared_ptr<const Interest> interest)<br class="">{<br class="">  App::OnInterest(interest); // tracing inside<br class="">  NS_LOG_FUNCTION(this << interest);<br class="">  if (!m_active)<br class="">    return;<br class="">  Name dataName(interest->getName());<br class="">  auto data = make_shared<Data>();<br class="">  data->setName(dataName);<br class="">  data->setFreshnessPeriod(::ndn::time::milliseconds(m_freshness.GetMilliSeconds()));<br class="">  data->setContent(make_shared< ::ndn::Buffer>(m_virtualPayloadSize));<br class="">  Signature signature;<br class="">    if (m_keyLocator.size() > 0) {<br class="">    signatureInfo.setKeyLocator(m_keyLocator);<br class="">  }<br class="">  signature.setInfo(signatureInfo);<br class="">  signature.setValue(::ndn::makeNonNegativeIntegerBlock(::ndn::tlv::SignatureValue, m_signature));<br class="">  data->setSignature(signature);<br class="">  NS_LOG_INFO("node(" << GetNode()->GetId() << ") responding with Data: " << data->getName());<br class="">  data->wireEncode();<br class="">  <span style="color: rgb(255, 0, 0);" class="">// FwcontentCopyTag contentCopyTag;<br class=""> // data->GetPayload()->AddPacketTag(contentCopyTag);</span><br class="">  m_transmittedDatas(data, this, m_face);<br class="">  m_appLink->onReceiveData(*data);<br class="">    <br class=""><br class="">the red sentence is the question of me  ?  I want use that to add a tag ,but it is Useless;<br class="">so, I want to consult a way to achieve my ideal. thankyou!<br class=""></div></blockquote></div><br class=""></div>
<style type="text/css">.qmbox style, .qmbox script, .qmbox head, .qmbox link, .qmbox meta {display: none !important;}</style>