I'm sending object of the class by send function.But the recv function is receiving a blank object.the recv function is returning the value equal to the size of object which means no error occured.Any suggestions .....
yes i'm pretty sure about it.I searched an object in a file and saw its details.it was absolutly file and in the very next line i send the object to client.if you need the code visit this http://cplusplus.com/forum/general/88229/
You are sending something of bad size. You should use sizeof, and not input the size of a variable by yourself.
Your 'u' var is 100 bytes big but you are sending it as a 500 bytes structure.
Don't know if that is the problem but this may be worth to check out.