Re(2): Am I Connected (Cont)
Re(2): Am I Connected (Cont)
- Subject: Re(2): Am I Connected (Cont)
- From: Jens Bauer <email@hidden>
- Date: Tue, 12 Feb 2002 19:55:58 +0100
Hi all,
On Tue, 12 Feb, 2002, Eric Gundrum <email@hidden> wrote:
>
>So, looking at OTPingSample, I could just try and ping the target (just
>
>once?) and if that works, yippee, I'm connected?
>
>
We found it much easier to use the ping command line tool built into OSX.
>
Just launch the tool with the appropriate parameters and look at the
>
result. The tool already is set to run as root; no need to authenticate an
>
admin user.
Does the ping tool always get installed; is included in the packages that
you can't deselect in the installer ?
>
I don't know if this will initiate dialing on a PPP connection. You
>
probably want to preflight the connection status before doing that.
>
>
You might consider reviewing the list archives for the last few weeks. This
>
topic was discussed quite recently.
Here's a bunch of API functions I'd find nice, if I had to rewrite the
application I wrote recently:
* ping
* automatic authorization for MoreSCF if required
* a possible temporary network configuration that would be gone when
leaving the application
* dial the freshly created PPP configuration with some kind of
notification when something happens
(I use ping to dial the connection, and when my ping succeeds, I have a
connection. This does not trap errors like "No dialtone", "disconnected",
or the like, but just keeps retrying for up to 3 minutes)
* (I'm certain there was a 5th functionality, but I'm unfortunately
equipped with faulty short-term memory, and the dealer won't take it back. ;))
Automatic authorization: Per session only: If the app hasn't already been
authorized, bring up a dialogbox requesting username/password. Otherwise
just do what the caller requested.
Per session to increase security; eg:
The (admin) user keeps a program that changes the network setup on his
harddisk.
Some novice user borrows his computer while he's taking a coffee break,
and messes up his network setup.
Unfortunately he runs a great deal of servers in the background, which
are all messed up.
Love,
Jens
--
Jens Bauer, Faster Software.
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.