[Telepathy] Connectivity manager

Simon McVittie simon.mcvittie at collabora.co.uk
Fri Jan 25 06:33:26 PST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Fri, 25 Jan 2008 at 14:24:41 +0200, Alberto Mardegan wrote:
> Is there in Linux some unified way to get notified of connectivity 
> events? (where by connectivity I also include phone, bluetooth, vpn...)

You may be able to monitor the existence of IP routes using netlink?
"There is a default route" is the best representation I can think of for
"we can get on the Internet", and has the advantage of being completely
generic. NetworkManager uses netlink via libnl in a GLib application, so
it could make a useful example.

On systems that use NetworkManager, you can listen for D-Bus signals,
but we must avoid assuming that all desktop systems use NM.

Most network connection mechanisms have some way to run scripts when
connectivity changes. This may be the only thing we can do for VPNs.

> We need a way to classify the various types of connections, and bind 
> them to the mission-control Accounts (or maybe to the Connection Managers?).

I've touched on this in the mail I'm about to send on the subject of
accounts and presets.

    Simon
-----BEGIN PGP SIGNATURE-----

iD8DBQFHmfM2WSc8zVUw7HYRAqydAJ9V2NA5razZQPupMlbFGi3NNc7v3QCgs+g4
z5a5jrN/hwVFowcc3zxvhwk=
=abSJ
-----END PGP SIGNATURE-----


More information about the Telepathy mailing list