Quote Originally Posted by giggs View Post
Can anyone help ??
Can please show that you have at least made a minor attempt to solve this issue on your own.

Serialization involves stuffing your data into a buffer of chars, in a fashion that makes it easy to retrieve at a later time (via de-serialization).

I recommend that you define/implement two functions; one that serializes the other that de-serializes. When you send the serialized data through the socket, you will need to know how many bytes are in the buffer you wish to send. Your serialize() function should keep track of this number, and return it.