torment wrote: [snip]
Have you tried just parsing the output from the command "ipconfig"?
It's pretty obvious from the output that might give you if a connection is availible.
It's tempting to use ipconfig's output, but the info it gives you is unreliable - you can incorrectly infer the presence of an net connection when you don't really have one (if you also run VMWare, if you have installed a loopback adapter, if you have a static public IP, etc.).
-Dave -- http://mail.python.org/mailman/listinfo/python-list