[ndnSIM] How to get the payload of the Data packet as what it originally is
mengxue_1224 at 126.com
Thu Sep 13 02:15:01 PDT 2018
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!
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ndnSIM