[ndnSIM] How to get the payload of the Data packet as what it originally is
mengxue
mengxue_1224 at 126.com
Thu Sep 13 02:15:01 PDT 2018
Hi,all
I am new in ndnSIM and met with some problems recently.
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.
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".
I have tried on the API documentation but not found the solutions using "Data::setpayload()" and "Data::getpayload()".
Thank you very much!
Best regards,
Xin Zhang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20180913/8df945d9/attachment.html>
More information about the ndnSIM
mailing list