Hi all,

I understand the concept of Serialization but,want to know
1.when we use this in realtime? and
2.under what situations we can use this?

I tried to google but cant find an satisfactory answer.Please help me out.
Thanks in advance

Recommended Answers

I understand the concept of your question but want to know

  1. is this homework
  2. what was unsatisfactory about the answers you found

You might want to glance over the rules once more.

Jump to Post

You use it whenever you want to send an instance of a class to another system (eg server to client)

Jump to Post

All 5 Replies

I understand the concept of your question but want to know

  1. is this homework
  2. what was unsatisfactory about the answers you found

You might want to glance over the rules once more.

You use it whenever you want to send an instance of a class to another system (eg server to client)

See http://www.parashift.com/c++-faq/serialization.html
There, it is defined as:
Serialization lets you take an object or group of objects, put them on a disk or send them through a wire or wireless transport mechanism, then later, perhaps on another computer, reverse the process: resurrect the original object(s). The basic mechanisms are to flatten object(s) into a one-dimensional stream of bits, and to turn that stream of bits back into the original object(s).

XML is frequently used to serialize objects and such these days. There are many packages that will help you with that for Java, C, C++, and other languages. And don't forget, you still need to de-serialize it at the other end of the connection. This may not be trivial.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.