Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (Hanky27, AndrewAMD), 1,266 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
[ANet] Send Event Extention? #352213
01/01/11 23:54
01/01/11 23:54
Joined: Jun 2008
Posts: 428
Rasch Offline OP
Senior Member
Rasch  Offline OP
Senior Member

Joined: Jun 2008
Posts: 428
Hi Dark_samurai,

i canīt write you a pm cause your personal limit is reached grin

1) First i have a question. In the manual it says you can send an event to yourself.

Does this cost traffic or not?

2) Could you think about implenting another "function" like BROADCAST, SERVER maybe ALL to send it to all + sender?

Otherwise we need to do it like this.

Code:
enet_clsend_event(20,daten,25,BROADCAST);
enet_clsend_event(20,daten,25,enet_get_clientid());



Or is there already something new? laugh

Would be great laugh

Thanks

Re: [ANet] Send Event Extention? [Re: Rasch] #352230
01/02/11 10:52
01/02/11 10:52
Joined: Jul 2005
Posts: 1,930
Austria
Dark_samurai Offline
Serious User
Dark_samurai  Offline
Serious User

Joined: Jul 2005
Posts: 1,930
Austria
Quote:
1) First i have a question. In the manual it says you can send an event to yourself.


Yes this will require traffic. This is ment to do some sort of ping to test the connection. Because the packet will travel from the client to the server and back.

Better do it this way:

Code:
enet_clsend_event(20, daten, 25, BROADCAST);
event_function(MY_CLIENTID, (String*)daten, 25); //the event function that is registered for event 20



This costs no traffic and is easy to implement. Another sending option would be too much work for too less advantages because the workaround is that easy.


ANet - A stable and secure network plugin with multi-zone, unlimited players, voip, server-list features,... (for A7/A8)!
get free version
Re: [ANet] Send Event Extention? [Re: Dark_samurai] #352392
01/03/11 13:15
01/03/11 13:15
Joined: Jun 2008
Posts: 428
Rasch Offline OP
Senior Member
Rasch  Offline OP
Senior Member

Joined: Jun 2008
Posts: 428
Allright thanks laugh


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