Sending data questions

Started by
10 comments, last by jeffreyp23 11 years, 10 months ago
To the OP: what I meant was:
To do this create a char Buffer[1000];
int offset = 0;
memcpy(&(Buffer[offset]), l_data.m_data, ...sizeof(YOUR_M_DATA));
offset += sizeof(YOUR_M_DATA);
memcpy(&(Buffer[offset]), &l_data.m_id, 4);//integer is 4 bytes

Basically you have to copy what is actually in the pointer itself was what I was getting at.

NBA2K, Madden, Maneater, Killing Floor, Sims http://www.pawlowskipinball.com/pinballeternal

Advertisement
Thanks for all the advice : ). I already got something up and running with memcpy.
I also found something else(what hplus mentioned) here : http://stackoverflow...nd-over-network (scroll down a bit for the code). Would this be a better solution?
Also i couldn't find to much information about

[background=rgb(250, 251, 252)]serialization(found 1 tutorial).[/background]



[color=#282828][font=helvetica, arial, verdana, tahoma, sans-serif][background=rgb(250, 251, 252)]If anybody got some useful links post them : )[/background][/font]




[color=#282828][font=helvetica, arial, verdana, tahoma, sans-serif][background=rgb(250, 251, 252)]Thanks[/background][/font]

This topic is closed to new replies.

Advertisement