Re: How detect internet connection?
- Posted by useless_ Aug 12, 2013
- 1738 views
sergelli said...
How to detect in my program, if the internet connection is working?
I have used "c_func (InternetCheckConnection, {Voi1, FLAG_ICC_FORCE_CONNECTION, 0})", but after calling this command More times, the program stays locked for up to two minutes
Is there some way to prevent this crash?
There are other commands to detect internet connection?
Sure:
dns google.com. (your isp or computer may cache this tho)
http to google. (or anywhere else)
useless