gnet/enet timeout

BlitzMax Forums/BlitzMax Programming/gnet/enet timeout

Hi folks.

I am using gnet on Su Doku Live (see http://www.deadpixelgames.com for details). I have seen some unexplained disconnects happen mid-game. My question is: what is the correct way of changing timeout values of the module?

I have browsed the source on enet c source, found the call with the timeout_ms parameter, but I was wondering is there is a better way of changing that value from bmax without hacking the base enet code. I see no obvious pathway to achieve that in the gnet functions documentation.

Changing the base enet code is really easy simply changing it to some hardcoded higher value is a terrible solution. What am I missing?

PLS

Can't you just set the timeout on the socket? Check the docs, as I'm merely pulling this from memory :)

gNet has somekind of issue with clients just dropping the connection, for me I get no indicator that the client has dropped either. as an example, open up a host and client app in windowed mode on the same machine, then click and hold on the title bar of the client app and make it freeze, if you let go of the title bar after a few seconds the client will re-sync and keep going, but if its more than 5 or so seconds, the client app never syncs back up and acts like its disconnected. There is also no notice that i can find from the host that the client has dropped either.. :(