Best way to Poll for connectivity
Christopher Lees
christopher_lees at iprimus.com.au
Sat Aug 6 15:02:12 UTC 2011
On Sat, 2011-08-06 at 12:00 +0000,
ubuntu-devel-discuss-request at lists.ubuntu.com wrote:
> From: Owas Lone <hello at owaislone.org>
> To: Ubuntu-Devel-Mailing-List <ubuntu-devel-discuss at lists.ubuntu.com>
> Cc: desktop-devel-list-request at gnome.org
> Subject: Best way to Poll for connectivity.
> Message-ID:
> <CANv2_BNwq27Sj41AqwgtVeoaW7p7aMd8Ch9MgJd6C_iX2qqHqw at mail.gmail.com>
> Content-Type: text/plain; charset=UTF-8
>
> Hey,
>
> I was wondering what would be the best/most efficient method of
> polling for the internet to become available.
>
> I mean like empathy or skype sit idle (poll to check connectivity) and
> imediately connect when computer goes online.
>
> What would be the best way to implement this in Python. Does
> GLib/GObject or any POSIX API provide some sort of callback system for
> this.
As far as I remember, Network Manager should have a Dbus interface that
you can use to check if there's a network connection up. Try Google and
you might be able to find some documentation about it. Sorry it's been
years since I read about it.
More information about the Ubuntu-devel-discuss
mailing list