Version: (using KDE KDE 3.2.1) Installed from: Gentoo Packages OS: Linux I am programing a KDE application to detect incomings calls when the modem is being used (it's a port of tuxcall http://tuxcall.sourceforge.net). I've the application finished, now i'm just bugfixing. Well, the problem is the way i've to do two action that my app needs: 1) The first one is to kill the ppp conection when a call is detected in order to attend it. Now, what i do is create a kprocess to execute "killall -0 pppd" or well "kppp -k". 2) The second one is more problematic. I need know when a ppp connection has been established. By now i've to methods to do this. The first one is to check if a file named /var/run/ppp0.pid exists, the other is open /proc/dev/net, and search for the string "ppp". I think the first action it's no a very big problem, can be a good solution, but the second have two problems under my point of view: 1) The two methods are heavy and slow. 2) They require to check the connection every X seconds, cicles or whatever. So I thought about the DCOP interface to comunicate my app with kppp so kppp tells my app when a conection is up or down, and my app tells kppp when to stop the connection. I've listed kppp DCOP interfaces and i haven't obtained the interfaces required, so i ask for you to take in consideration if will be possible to add this features to your application in the future (if possible near future). I think this feature could be util for another application such as kopete or kget. PD: Sorry for my poor english.
This feature could be very useful. I'm having problems getting Kopete's Connection Status plugin to work, and learned it checks for the existance of a default gateway using netstat -rn - a suboptimal method. A DCOP interface to KPPP would be much nicer.
But kppp is not the only means by which a network connection can be set up. There are still LANs, ADSL etc.
Ok. There are more methods to establish a network connection, but the app that requires this feature can ask to the user what method is being used.
This project is unfortunately no longer maintained. If a new maintainer wants to step up and take care, the project is archived here: https://invent.kde.org/unmaintained/kppp You can just clone it in your private namespace on invent.kde.org and if you have started to work on it and fixed/implemented something get it reviewed and the project unarchived. Sorry for the inconveniences.