First of all,
A little introduction, (hope its not totally out of topic), i am a student at Lisbon at the Faculty of Science of the University of Lisbon, takin a degree in software engeneering. I am 22, and thats about it :P
Now for the lame question, and yes it must be lame eh:
I am doing a server/client in C, using TCP, now i know i cant send directly C structs cause of the architecture alignment resctrictions (the pads and all). After some search i came along the way to resolve this, it was:
1) rearrange structure members;
2) Serialize structures by-member.
The big question (and yes i am kinda noobies in C (and the rest for that matter)), how do i do this?
by no mean i want a sample of code or anything, but if someone could explain how to do this.
Hope not to bother
Rykaerdoe <(^.^<) <--- lol taken from FFXI
sigh - edited cause of grammar lol