Gentoo Archives: gentoo-user

From: Alan McKinnon <alan.mckinnon@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] How the HAL are you supposed to use these files?
Date: Fri, 12 Feb 2010 11:08:21
Message-Id: 201002121247.16974.alan.mckinnon@gmail.com
In Reply to: Re: [gentoo-user] How the HAL are you supposed to use these files? by Graham Murray
1 On Friday 12 February 2010 11:42:26 Graham Murray wrote:
2 > Alan McKinnon <alan.mckinnon@×××××.com> writes:
3 > > On Friday 12 February 2010 09:44:01 Graham Murray wrote:
4 > >> Volker Armin Hemmann <volkerarmin@××××××××××.com> writes:
5 > >> > so how do you propose that a network connection manager tells a
6 > >> > broweser or mail app that they are offline?
7 > >>
8 > >> Why does the app need to know? Browsers normally have an online/offline
9 > >> menu selection and if you try to browse to a site when your network is
10 > >> offline then the browser will generate the appropriate error message. In
11 > >> any case, these notifications are only really of use on a single-homed
12 > >> non LAN connected system. On an office LAN, you may well be able to
13 > >> still access your mail server but a problem means that you cannot access
14 > >> any web sites.
15 > >
16 > > A network connection manager tells apps when the machine's interface goes
17 > > down, not when the gateway is no longer available.
18 > >
19 > > You have these two things conflated.
20 >
21 > Which still does not explain why the applications need to know when a
22 > network interface goes down but does not need to know when (for example)
23 > the ADSL connection (via an external router) to the 'outside world' goes
24 > down[1]. As far as both the application and the user are concerned the
25 > effect is exactly the same in both cases - the application is
26 > offline. If it is considered important to inform the application of one,
27 > then it should be equally important to inform the application of the
28 > other. If a network interface goes offline then the user needs to know,
29 > so as to take corrective action, but I do not think that telling the web
30 > browser and mail applications is the correct way of informing the user.
31 >
32 > [1] Which in my experience, while not a frequent occurrence, happens
33 > far more frequently than the network interface going down.
34
35 The network beyond the machine is completely outside the control of any app on
36 the machine, that's why it is not checked for. Besides, if the gateway is
37 down, the LAN is usually still up local things are probably accessible.
38
39 The most common case of the interface going down is the wireless kill switch
40 pressed or the LAN cable pulled out. That's something the user would like to
41 know due to many of them doing it a LOT. The system can send out a notify for
42 that, which apps can chose to listen to or not. The most common case would be
43 a popup saying "A cable is unplugged".
44
45 Mailers can then take themselves offline if they wish, and that ability
46 depends on what the dev decided to support. Just because you don't personally
47 see the point does not mean
48
49 a. It is pointless, or
50 b. The message bus should not support such things
51
52 --
53 alan dot mckinnon at gmail dot com