Re: Detect PPP interface ?
- From: Derek Simkowiak <dereks kd-dev com>
- To: Magnus Wirström <asd mail bip net>
- Cc: gnome-devel-list gnome org
- Subject: Re: Detect PPP interface ?
- Date: Wed, 28 Jun 2000 11:22:33 -0700 (PDT)
-> I am writing a simple ppp0 dialer ... and I wonder if anyone knows how
-> to detect if ppp0 is up and running in a simple way ... Would also be
-> nice to to get some status stuff too =)
This question is kind of offtopic; please send all further
correspondance privately.
To answer the question: look at the file /proc/net/dev or else run
the command /sbin/ifconfig and parse the output. See the file
/usr/src/linux/Documentation/proc.txt for Linux-specific details.
-> All in this in GNOME of course =)
PPP is just a network interface, no different from an Ethernet
interface or the loopback (127.0.0.1) interface.
That means PPP has nothing to do with your desktop gui
environment. Whether or not you are running Gnome, PPP will act exactly
the same. It also means that your app will need to support different
O.S.'s explicitly, since they report interface information differently.
(I.e., using /proc/net/dev will only work under Linux)
--Derek
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]