title: Serialization of struct
body: <p>Suppose i have a struct whose member values i want to send over the network to another system using winsock 2. I'm using C++ language.
   How do i convert it to char * keeping in mind that the struct has to be serialized before sending and also how do i deserialize the char * into struct at the other end? I found boost serialization as a suggestion to similar question but can anyone illustrate with a small code snippet for both serialization and deserialization ?</p>
  
  <p>This question might seem very basic but the other answers to the related posts did not help much.</p>