[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Notify all networked applications of pending network disconnect?
From:       Thiago Macieira <thiagom () wanadoo ! fr>
Date:       2003-01-31 19:25:23
[Download RAW message or body]

Manuel Amador (Rudd-O) wrote:
>You'd need applications to subscribe to a network event daemon telling
>the daemon the IP addresses they're connecting to, so when a disconnect
>event comes, and a route is no longer available, the network event
>daemon can calculate which IPs won't be available and notify all
>subscribed applications which are affected by the disconnection process.
>The alternative would be programming the app that uses the network to
>watch the network status and finding out whether the route used for the
>last connection still exists or not.  Every second.  Or when a failure
>occurs, so the failure message doesn't say "disconnected" only, but
>"Your internet connection seems to be down".

It's easier just to send a keep-alive packet over the open connection. If the 
routes go down, the kernel must respond with "No route to host" and terminate 
the connection.
-- 
  Thiago Macieira - UFOT Registry number: 1001
 thiagom@mail.com
   ICQ UIN: 1967141  PGP/GPG: 0x6EF45358
     Registered Linux user #65028

[Attachment #3 (application/pgp-signature)]
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic