Hello to all!
Currently i am working on my diploma thesis and i am really confused about serialization.
I am using ns2 (network simulator 2) that combines c++ and otcl.
What i want to do is to send an instance of a class through a wireless network. One node will create a packet that will contain the instance. The packet will afterwards be received by another node that will "read " the included data (that is, the instance) and will create the object.
So i wonder...what is the best way to do ti?
What method of serialization shall i prefer?
Any suggestions would be really appreciated. I googled a lot, but it seems that serialization in c++ is an "obscure" topic.
i found that boost libraries might be of great help as far as serialization is concerned.
However, i am afraid to try to install new libraries since there might be a compatability issue with ns2. What is your opinion? I mean, have you ever tried those?
And something else : after the class is being serialized
will i be able to store it in the packet as a file or not? I mean, that is what i really want to do. To store it in the packet, not to directly send it through connection.
Please help me.Thank you!