Hi,
Is there an easy way in C of sending a struct over a socket, where the struct contains a pointer to a char buffer(length of the char buffer can vary) and also contains pointers to other structs(these structs must be transmitted as well).
Thanks
Hi,
Is there an easy way in C of sending a struct over a socket, where the struct contains a pointer to a char buffer(length of the char buffer can vary) and also contains pointers to other structs(these structs must be transmitted as well).
Thanks
pointer to the string is obviously meaningless to the machine you're sending it to so I would suggest just sending a buffer with the appropriate values one after another. The string would be one of those values.
Of course it is a little bit nicer to come up with a real data format like XML but heck that's probably overkill right?
always looking, make an offer. get me out of this place.