how to send a struct
-
send function only send char*, how to send a struct. thanks!
-
send function only send char*, how to send a struct. thanks!
you need to write each member to a char buffer, then send that
-
send function only send char*, how to send a struct. thanks!
-
send function only send char*, how to send a struct. thanks!
a struct, is finally an array of bytes. and a char* is also such a thing. the only thing to tell to send is how much bytes (chars) it will have to send, with sizeof(YourStruct).
TOXCCT >>> GEII power
[VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]
-
a struct, is finally an array of bytes. and a char* is also such a thing. the only thing to tell to send is how much bytes (chars) it will have to send, with sizeof(YourStruct).
TOXCCT >>> GEII power
[VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]
-
send function only send char*, how to send a struct. thanks!
i using this method: send(s, (char*)&my_struct, sizeof(my_struct), 0); thanks all for help!