Hello
I want to send the data of a structure over TCP/IP, my question is that
can I use this approach?
struct
{
int val;
char szVal[128];
} mystruct;
sendMyStruct(&m ystruct);
receiveMyStruct (&myRecvStruct) ;
The real question as I think, is there any difference between the
previous structure and the following structure;
struct
{
char szVal[128];
int val;
} mystruct;
Thanks
I want to send the data of a structure over TCP/IP, my question is that
can I use this approach?
struct
{
int val;
char szVal[128];
} mystruct;
sendMyStruct(&m ystruct);
receiveMyStruct (&myRecvStruct) ;
The real question as I think, is there any difference between the
previous structure and the following structure;
struct
{
char szVal[128];
int val;
} mystruct;
Thanks
Comment