Friends can you please tell me how can i send object of a class over a network to the client??
sangham
0
Newbie Poster
Recommended Answers
Jump to PostOn client, send the object just like you would send any other blob, then on client recreate it from the blob. Probably something like below. Make sure the class has an overloaded = operator for this to work.
// server MyClass object; ... send(socketID, &object, sizeof(MyClass));
Jump to PostI have read about Object Serialization in my JAVA book. Could it be possible with C++?
See e.g. here
All 6 Replies
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
Alex Edwards
321
Posting Shark
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
vijayan121
1,152
Posting Virtuoso
Prabakar
77
Posting Whiz
mitrmkar
1,056
Posting Virtuoso
Prabakar
commented:
thanks
+1
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.