How to pass the structure vector over the socket in c++

i created the structure and i bind the structue in to the vector..


now i want to send the vector to the client .

i refer i net i want to do the serilization..

i don't know how to do that..

please help me..
You could write an insertion and extraction operator for your struct. Here is an example using a class, but it works the same for a struct.

http://cplusplus.com/forum/general/47470/#msg258043

Topic archived. No new replies allowed.