TheMysteriousStranger
05-22-2006, 06:46 AM
For those using wininet, how are you handling the user denying internet access to your game via the firewall?
At the moment, I have it set up so that the attempt to access the net is only done when the user clicks to submit a high score or view the online scoreboard. The problem is, that if the user clicks to deny the access via a firewall, the game hangs completely until windows decides the connection has timed out (which on my machine is 30 seconds, but I think the default is 60 seconds). Obviously, I'd rather it didn't hang like this.
My first thought was asynchronous mode for wininet, but for some bizarre reason that I can't fathom, when I use async mode, the calls to open the internet connection work normally, but any calls to open a specific url fail.
So I'm wondering if there's some trick that I've missed that will allow the game to continue processing while wininet is busy timing out.
At the moment, I have it set up so that the attempt to access the net is only done when the user clicks to submit a high score or view the online scoreboard. The problem is, that if the user clicks to deny the access via a firewall, the game hangs completely until windows decides the connection has timed out (which on my machine is 30 seconds, but I think the default is 60 seconds). Obviously, I'd rather it didn't hang like this.
My first thought was asynchronous mode for wininet, but for some bizarre reason that I can't fathom, when I use async mode, the calls to open the internet connection work normally, but any calls to open a specific url fail.
So I'm wondering if there's some trick that I've missed that will allow the game to continue processing while wininet is busy timing out.