Determining if a client PC has an Internet connection

Andrew Dalke adalke at mindspring.com
Mon Sep 20 12:31:23 EDT 2004


Dave Brueck wrote:
> 1) If the user has a modem and is connected via a modem, you know for 
> sure that the user is online (use ctypes to call 
> rasapi32.RasEnumEntriesA to see if the user has a modem, and 
> rasapi32.RasEnumConnectionsA to see if the user is connected via a modem)

Or is connected to a private network that isn't
connected to the Internet.

Though these days that's rare.   I don't think I've been
in that situation in over 12 years -- the last time
I connected to a dial-up BBS.

				Andrew
				dalke at dalkescientific.com



More information about the Python-list mailing list