473,467 Members | 1,307 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

serialiazation in c++

1 New Member
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!
Jul 24 '07 #1
0 986

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Russ | last post by:
Hi, I'm trying to build a gerenic routine which deals with versioning problems between serailized objects. All my objects are Serialized into a SQL server DB, but I need to make changes to the...
0
by: Raed Sawalha | last post by:
Dear: I'm working web application that expect to pass an class object to DLL(Class Lib) I just Attached the DLL File into Web Solution ( DLL is located in other machine), inside the class...
4
by: =?Utf-8?B?Z3V5?= | last post by:
Is this a valid approach to State Management? What I do is define a class 'State' which holds all the objects etc. that I need to store in the Session. I can then get my state object and...
0
by: Stefan Schulze Frielinghaus | last post by:
On Wed, 2008-06-25 at 15:04 -0400, Joseph J. Kesselman wrote: I hoped you didn't say that ;-) I found one which is pretty simple to use and produces a nice output. If someone else is...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.