Jump to content

Check for active inet-connection trough proxy WITH Timeout?


Recommended Posts

Hi,

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 ^^

Link to comment
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
    Inetgetsize()
Else
    No internet connection
Endif

www.itoady.com

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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...