[python-win32] Checking if connected to Internet

Itamar S.-T. itamarst@yahoo.com
Thu, 5 Apr 2001 02:44:19 -0700 (PDT)


Certain programs (e.g. AIM or ICQ) only start up when
Windows connects to the Internet. How could I do this
in Python?

Trying to connect to the remote server and seeing if
this fails is no good, since a "Connect to the
Inteernet" dialog pops-up automatically. Another thing
I can do is use the win32ras functions, and every few
seconds check if the number of connections has
increased. Presumably a new one means the user has
conneted to the internet, but it can also in theory be
something else.

Any other suggestions?

=====
Itamar Shtull-Trauring, itamar(at)shtull-trauring.org

__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/