Send_Var or Send_Data for sending structs

Posted By: fastlane69

Send_Var or Send_Data for sending structs - 05/17/10 03:37

Anyone know if they both currently work?
Anyone know if there is any difference between the two if so?
Posted By: Spirit

Re: Send_Var or Send_Data for sending structs - 05/17/10 14:50

Yes, send_var updates a global var or struct and send_data just sends data, without needing the same struct on the receiver side.

I got used to call send_data, it offers more flexibility. You need an event on the receiver side to receive that data.
Posted By: fastlane69

Re: Send_Var or Send_Data for sending structs - 05/17/10 16:49

Ahhhhh...now this is very very interesting.

So what you are saying is that Send_Var will send a pre-defined Struct and thus has to pre-defined on both client and server prior to use....but Send_Data can send anything to anyone without having copies on both sides? Did I get that right? laugh

If so that's really fantastic and you're right, Send_Data becomes WAY flexible!
© 2024 lite-C Forums