Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (AndrewAMD, TedMar, dr_panther, Ayumi), 1,072 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Send_Var or Send_Data for sending structs #323742
05/17/10 03:37
05/17/10 03:37
Joined: Mar 2003
Posts: 5,377
USofA
fastlane69 Offline OP
Senior Expert
fastlane69  Offline OP
Senior Expert

Joined: Mar 2003
Posts: 5,377
USofA
Anyone know if they both currently work?
Anyone know if there is any difference between the two if so?

Re: Send_Var or Send_Data for sending structs [Re: fastlane69] #323793
05/17/10 14:50
05/17/10 14:50
Joined: Sep 2003
Posts: 929
Spirit Offline

Moderator
Spirit  Offline

Moderator

Joined: Sep 2003
Posts: 929
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.

Re: Send_Var or Send_Data for sending structs [Re: Spirit] #323809
05/17/10 16:49
05/17/10 16:49
Joined: Mar 2003
Posts: 5,377
USofA
fastlane69 Offline OP
Senior Expert
fastlane69  Offline OP
Senior Expert

Joined: Mar 2003
Posts: 5,377
USofA
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!


Moderated by  HeelX, Spirit 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1