[Tutor] best way to tell if i am connected to the internet
nephish at gmail.com
Tue May 1 15:04:35 CEST 2007
good enough, i suppose i can use a try, except to test if i am online and
from that have a true / false.
That is what i was looking for. I just didn't think it necessary to pull a
webpage every 20 minutes.
On 5/1/07, Alan Gauld <alan.gauld at btinternet.com> wrote:
> "shawn bright" <nephish at gmail.com> wrote
> > i am wondering, what would be the simplest way to get a true/false
> > am i connected to the internet ?
> > right now i am using httplib to fetch a webpage every 20 minutes to
> > see, but
> > i am thinking that there is a better way,
> You don't need to fetch it just connect. If there are no errors you
> are online.
> Alan G
> Tutor maillist - Tutor at python.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Tutor