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. thanks shawn k
On 5/1/07, Alan Gauld <[EMAIL PROTECTED]> wrote:
"shawn bright" <[EMAIL PROTECTED]> 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@python.org http://mail.python.org/mailman/listinfo/tutor
_______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor