<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div style="line-height:1.6;font-family:'苹方','微软雅黑','sans-serif';">Hi,<br>    Thank you very much, I will have a try.<br>Best Regards<br>Xue Meng<br><br></div><div class="ne-quoted">        <a href="https://maas.mail.163.com/dashi-web-extend/html/proSignature.html?iconUrl=https%3A%2F%2Fmail-online.nosdn.127.net%2Fqiyelogo%2FdefaultAvatar.png&name=mengxue&uid=mengxue_1224%40126.com&ftlId=1&items=%5B%22%E9%82%AE%E7%AE%B1%EF%BC%9Amengxue_1224%40126.com%22%5D" style="display:block;background:#fff; max-width: 400px; _width: 400px;padding:15px 0 10px 0;text-decoration: none; outline:none;-webkit-tap-highlight-color:transparent;-webkit-text-size-adjust:none !important;text-size-adjust:none !important;">
            <table cellpadding="0" style="width: 100%; max-width: 100%; table-layout: fixed; border-collapse: collapse;color: #9b9ea1;font-size: 14px;line-height:1.3;-webkit-text-size-adjust:none !important;text-size-adjust:none !important;">
                <tbody style="font-family: 'PingFang SC', 'Hiragino Sans GB','WenQuanYi Micro Hei', 'Microsoft Yahei', '微软雅黑', verdana !important; word-wrap:break-word; word-break:break-all;-webkit-text-size-adjust:none !important;text-size-adjust:none !important;">
                    <tr>
                            <td width="38" style="padding:0; box-sizing: border-box; width: 38px;">
                                <img width="38" height="38" style="vertical-align:middle; width: 38px; height: 38px; border-radius:50%;" src="https://mail-online.nosdn.127.net/qiyelogo/defaultAvatar.png">
                            </td>
                            <td style="padding: 0 0 0 10px; color: #31353b;">
                                <div style="font-size: 16px;font-weight:bold; width:100%; white-space: nowrap; overflow:hidden;text-overflow: ellipsis;">mengxue</div>
                            </td>
                    </tr>
                        <tr width="100%" style="font-size: 14px !important; width: 100%;">
                            <td colspan="2" style="padding:10px 0 0 0; font-size:14px !important; width: 100%;">
                                    <div style="width: 100%;font-size: 14px !important;word-wrap:break-word;word-break:break-all;">邮箱:mengxue_1224@126.com</div>
                            </td>
                        </tr>
                </tbody>
            </table>
        </a><html><body><p style="border-top:1px solid #e5e5e5;padding-top: 8px; font-size: 12px; color:#b6b8bb;line-height: 1.833;">签名由 <a href="https://mail.163.com/dashi/dlpro.html?from=mail88" style="color:#6aa8f6;text-decoration: none">网易邮箱大师</a> 定制</p></body></html><blockquote id="ntes-andriodmail-quote" style="margin:0px !important;padding:0px !important;border: none !important;"><blockquote id="ntes-andriodmail-quote" style="margin:0px !important;padding:0px !important;border: none !important;"><div class="J-reply" style="background-color:#f2f2f2;color:black;padding-top:6px;padding-bottom:6px;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;margin-top:45px;margin-bottom:20px;">
    <div style="font-size:14px;line-height:1.5;word-break:break-all;margin-left:10px;margin-right:10px">On <span class="mail-date">09/14/2018 10:29</span>, <a class="mail-to" style="text-decoration:none;color:#2a97ff;" href="mailto:mastorakis@cs.ucla.edu">Spyridon (Spyros) Mastorakis</a> wrote:</div>
</div><html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi,<div class=""><br class=""></div><div class="">this is related to properly encoding/decoding the payload of your data packets.</div><div class=""><br class=""></div><div class="">There are a few examples of encoding/decoding you can refer to:</div><div class=""><br class=""></div><div class=""><a href="https://github.com/spirosmastorakis/nTorrent/blob/master/src/torrent-file.cpp#L97" class="">https://github.com/spirosmastorakis/nTorrent/blob/master/src/torrent-file.cpp#L97</a></div><div class=""><a href="https://github.com/spirosmastorakis/nTorrent/blob/master/src/torrent-file.cpp#L158" class="">https://github.com/spirosmastorakis/nTorrent/blob/master/src/torrent-file.cpp#L158</a></div><div class=""><a href="https://github.com/spirosmastorakis/nTorrent/blob/master/src/file-manifest.cpp#L147" class="">https://github.com/spirosmastorakis/nTorrent/blob/master/src/file-manifest.cpp#L147</a></div><div class=""><a href="https://github.com/spirosmastorakis/nTorrent/blob/master/src/file-manifest.cpp#L253" class="">https://github.com/spirosmastorakis/nTorrent/blob/master/src/file-manifest.cpp#L253</a></div><div class=""><br class=""></div><div class="">Thanks,</div><div class=""><br class=""><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/~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 Sep 13, 2018, at 2:15 AM, mengxue <<a href="mailto:mengxue_1224@126.com" class="">mengxue_1224@126.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div style="line-height: 1.7; font-size: 14px; font-family: Arial;" class=""><div class="">Hi,all</div><div class="">   I am new in ndnSIM and met with some problems recently.</div><div class="">   Assume that I defined a class " Student " and want to attach an instantiation named " newStudent " of  the "Student" class as the payload of a Data packet.</div><div class="">   I wonder what should I do to set this instantiation as the payload of the Data packet so that  in other nodes  I can get the payload just as what it originally is,i.e.,"newStudent" , so that I can do some operations on the "newStudent".</div><div class="">I have tried on the API documentation but not found the solutions using "Data::setpayload()" and "Data::getpayload()".</div><div class="">  Thank you very much!</div><div class="">  Best regards,</div><div class="">  Xin Zhang</div></div></div></blockquote></div><br class=""></div></div></body></html></blockquote></blockquote></div>
</body>
</html>