prepare a proper msg
Hi,
I need to send over my TCP network a struct (struct X), but function recv accepts the parameter to send as char* buf.
is there a proper way to cast a struct into a char* or should I prepare a special function that transfers a struct to char* (by concatenating all data members of struct into a char*)?
thanks
|