On Sat, 2011-08-06 at 12:00 +0000,
ubuntu-devel-discuss-requ...@lists.ubuntu.com wrote:

> From: Owas Lone <he...@owaislone.org>
> To: Ubuntu-Devel-Mailing-List <ubuntu-devel-discuss@lists.ubuntu.com>
> Cc: desktop-devel-list-requ...@gnome.org
> Subject: Best way to Poll for connectivity.
> Message-ID:
>       <canv2_bnwq27sj41aqwgtveoaw7p7amd8ch9mgjd6c_ix2qq...@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.


-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss

Reply via email to