Determining if a client PC has an Internet connection

Cameron Laird claird at lairds.us
Mon Sep 20 14:08:05 EDT 2004


In article <vBD3d.5552$gG4.3070 at newsread1.news.pas.earthlink.net>,
Andrew Dalke  <dalke at dalkescientific.com> wrote:
>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.
				.
				.
				.
I think it happens *constantly* for people
working with credit-card processing, old
industrial systems that used telephone lines
for monitoring, and so on.



More information about the Python-list mailing list