<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Carl,<div class=""><br class=""></div><div class="">since this seems to be a documentation issue of ndn-cxx, but related to ndnSIM at the same time, I would like this email to be on the nfd-dev mailing list as well.</div><div class=""><br class=""></div><div class="">The general guidance that I could give you is (as you correctly pointed out) that in NDN we follow the TLV format (that is, Type - Length - Value).</div><div class=""><br class=""></div><div class="">To that end, you will have to create your own methods (or extend the existing ones) to encode and decode something to/from wire format. </div><div class=""><br class=""></div><div class="">If you could be more specific on the things that you would like to achieve, I could provide more help.</div><div class=""><br class=""></div><div class="">In general, the Block class of ndn-cxx, provides encoders and decoders for many different types of data in order to abstract the low layer details from the developer.</div><div class=""><br class=""></div><div class="">As far as the documentation issue is concerned, thank you for bringing this up. We will try to address it in the near future.</div><div class=""><br class=""></div><div class="">Thank you,</div><div class=""><br 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/~mastorakis/" class="">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 Feb 8, 2016, at 3:10 PM, Carl Zu <<a href="mailto:carlzu8@gmail.com" class="">carlzu8@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">I think lack of documentation is a problem...<div class=""><br class=""></div><div class="">I wanted to write some bytes in the interest message in ndnSIM. In ns3, thanks to their documentation, one can easily understand that in order to write some bytes, he should serialize a header. </div><div class=""><br class=""></div><div class="">For doing the same thing in ndnSIM, I have had the impression that I should use "block". Moreover, It looks as though an interest message is a set of TLVs (based on the explanation in the NDN project website). So probably if I like to write eight bytes as four pieces of two-byte data, I should write four TLVs. But indeed, there are many constructors in block.hpp, and it's just about looking at one code after another to understand each of them due to lack of documentation...<br class=""><br class="">Can someone please give some guidance ???. </div><div class=""><br class=""></div><div class="">thanks and rgds.<br class="">C</div></div></div></blockquote></div><br class=""></div></body></html>