neo van matix Posted May 3, 2007 Share Posted May 3, 2007 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 More sharing options...
Toady Posted May 3, 2007 Share Posted May 3, 2007 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now