Jump to content
Sign in to follow this  
neo van matix

Check for active inet-connection trough proxy WITH Timeout?

Recommended Posts

neo van matix


i like to check our internet-connection. We've a proxy.

Now, my problem: I'm requesting the Size of the google-logo (inetgetsize()). That works... my problem: If there's no active internet connection, the script stocks for... 15-30 seconds.

It would be nice, if i could setup a timeout for inetget or inetgetsize,... but i cant :/

maybe, someone knows a solution?

Attention! English noob ^^

Share this post

Link to post
Share on other sites

Look at Ping()

To add a timeout just first ping the destination (google.com) with a timeout of say 250.

If this timeouts then don't do the inetgetsize().

ping google with 250 millisecond timeout
If no error then
    No internet connection


A* (A-star) Searching Algorithm - A.I. Artificial Intelligence bot path finding

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.