[Tutor] best way to tell if i am connected to the internet

shawn bright 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.
shawn k

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
> http://mail.python.org/mailman/listinfo/tutor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20070501/55217d98/attachment.html 

More information about the Tutor mailing list