Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
4 registered members (NewbieZorro, Grant, TipmyPip, AndrewAMD), 13,346 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 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 | 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