Bug 78335 - Add DCOP interfaces for get conection status and kill conection
Summary: Add DCOP interfaces for get conection status and kill conection
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kppp
Classification: Unmaintained
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Gentoo Packages Linux
: NOR wishlist
Target Milestone: ---
Assignee: Harri Porten
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-23 23:42 UTC by Nacho
Modified: 2025-06-09 20:48 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nacho 2004-03-23 23:42:30 UTC
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.
Comment 1 meldroc 2004-04-01 01:36:19 UTC
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.
Comment 2 Harri Porten 2004-04-01 02:48:29 UTC
But kppp is not the only means by which a network connection can be set
up. There are still LANs, ADSL etc.

Comment 3 Nacho 2004-04-02 15:24:37 UTC
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.
Comment 4 Christoph Cullmann 2025-06-09 20:48:38 UTC
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.