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
3 registered members (NewbieZorro, TipmyPip, 1 invisible), 19,045 guests, and 8 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
[ANET REQUEST] Set the Timeout #361718
03/04/11 16:53
03/04/11 16:53
Joined: May 2008
Posts: 2,113
NRW/Germany
alibaba Offline OP
Expert
alibaba  Offline OP
Expert

Joined: May 2008
Posts: 2,113
NRW/Germany
Can you implement that i can set the timeout?

And btw, can you also add a function named enet_check_server?
would be great laugh

Last edited by alibaba; 03/04/11 19:06.

Professional Edition
A8.47.1
--------------------
http://www.yueklet.de
Re: [ANET REQUEST] Set the Timeout [Re: alibaba] #361738
03/04/11 19:19
03/04/11 19:19
Joined: Jul 2005
Posts: 1,930
Austria
Dark_samurai Offline
Serious User
Dark_samurai  Offline
Serious User

Joined: Jul 2005
Posts: 1,930
Austria
I will have a look at setting the timeout. But I already have looked into this for some time but it seemed to be not poosible to set the ENET timeout.

What should enet_check_server() do? Checking if the connection to the server is alright? This can be checked through enet_get_connection() or enet_get_clientid().


ANet - A stable and secure network plugin with multi-zone, unlimited players, voip, server-list features,... (for A7/A8)!
get free version
Re: [ANET REQUEST] Set the Timeout [Re: Dark_samurai] #361742
03/04/11 19:54
03/04/11 19:54
Joined: May 2008
Posts: 2,113
NRW/Germany
alibaba Offline OP
Expert
alibaba  Offline OP
Expert

Joined: May 2008
Posts: 2,113
NRW/Germany
Ah okay, didn´t know that clientid changes if connection to server is lost.Thanks laugh

It would be great to set the timeout, but if it´s not possble, then it´s not that bad laugh


Professional Edition
A8.47.1
--------------------
http://www.yueklet.de
Re: [ANET REQUEST] Set the Timeout [Re: alibaba] #361915
03/05/11 20:06
03/05/11 20:06
Joined: May 2008
Posts: 2,113
NRW/Germany
alibaba Offline OP
Expert
alibaba  Offline OP
Expert

Joined: May 2008
Posts: 2,113
NRW/Germany
Hey Dark_Samurai i foundsomething!

I downloaded the 1.3.1 source code of enet and found in th enet.h line 202 you can find :

ENET_PEER_TIMEOUT_LIMIT = 32,
ENET_PEER_TIMEOUT_MINIMUM = 5000,
ENET_PEER_TIMEOUT_MAXIMUM = 30000,

so maybe it´s possible to set it?


Professional Edition
A8.47.1
--------------------
http://www.yueklet.de
Re: [ANET REQUEST] Set the Timeout [Re: alibaba] #361924
03/05/11 20:23
03/05/11 20:23
Joined: Jul 2005
Posts: 1,930
Austria
Dark_samurai Offline
Serious User
Dark_samurai  Offline
Serious User

Joined: Jul 2005
Posts: 1,930
Austria
This is a #define so it can't be changed during runtime. Maybe it's possible to replace it by a variable, I don't know. But I once talked to Lee Salzmann (the creator of ENET) about how it's possible to change the timeout and he said it's not.


ANet - A stable and secure network plugin with multi-zone, unlimited players, voip, server-list features,... (for A7/A8)!
get free version
Re: [ANET REQUEST] Set the Timeout [Re: Dark_samurai] #361925
03/05/11 20:24
03/05/11 20:24
Joined: May 2008
Posts: 2,113
NRW/Germany
alibaba Offline OP
Expert
alibaba  Offline OP
Expert

Joined: May 2008
Posts: 2,113
NRW/Germany
Hmm.. could you try replacing it with a variable?


Professional Edition
A8.47.1
--------------------
http://www.yueklet.de
Re: [ANET REQUEST] Set the Timeout [Re: alibaba] #361941
03/05/11 20:56
03/05/11 20:56
Joined: Jul 2005
Posts: 1,930
Austria
Dark_samurai Offline
Serious User
Dark_samurai  Offline
Serious User

Joined: Jul 2005
Posts: 1,930
Austria
I will put it on my to-do list. But it will take some time until I can work on this (~3 months).


ANet - A stable and secure network plugin with multi-zone, unlimited players, voip, server-list features,... (for A7/A8)!
get free version
Re: [ANET REQUEST] Set the Timeout [Re: Dark_samurai] #361942
03/05/11 21:01
03/05/11 21:01
Joined: May 2008
Posts: 2,113
NRW/Germany
alibaba Offline OP
Expert
alibaba  Offline OP
Expert

Joined: May 2008
Posts: 2,113
NRW/Germany
Okay, thanks laugh


Professional Edition
A8.47.1
--------------------
http://www.yueklet.de

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