<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div>Hi Dex,</div><div><br></div><div>The only reason for the Set/GetPayload in Interest is to provide a mechanism to set so called PacketTags (these tags can be associated only with Packet class).</div><div><br></div><div>These PacketTags, I think, should help you in your case.  What you need is to create a class, similar to <a href="https://github.com/NDN-Routing/ndnSIM/blob/master/utils/ndn-fw-hop-count-tag.h">https://github.com/NDN-Routing/ndnSIM/blob/master/utils/ndn-fw-hop-count-tag.h</a> and then Add this tag to the Interest's "payload" before sending out and Remove (=read) the tag after receiving.</div><div><br></div><div>---</div><div>Alex</div><br><div><div>On Nov 27, 2013, at 6:25 AM, 丁锟 <<a href="mailto:dex0268@gmail.com">dex0268@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">Hi, Alex<div><br></div><div>I want to put some parameters into an Interest for the purpose that a downlink node may convey some control information that designed by myself to a uplink node. Then I found that Interest class has a function named SetPayload(). Could I use SetPayload()? Should I design a new application?  Could you please present a simple example file?</div>
<div><br></div><div><br></div><div>----------</div><div>Dex </div></div></blockquote></div></body></html>