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: Mon, 11 Feb 2002 22:59:07 +0100
Hi Sean,
On Mon, 11 Feb, 2002, Sean Bullington <email@hidden> wrote:
>
>You may find the OTPingSample very interesting.
>
>-Another simple approach would be to ping your DNS, however, please make
>
>sure that the modem will not dial before doing so.
>
>
>
If you're looking for a way on OSX, couldn't you check the status of the
>
interface? Since OSX is BSD based, can't you just query an interface for
>
its information, such as link speed, connectivity, etc... or in the case
>
of ppp just see if a ppp0 or some similar interface is up? (keep in mind
>
this comment comes from a unix guy, not from an OSX wizard :)
>
It seems like there should be a more generic way to do this than simply
>
"pinging" a host (which may or may not be allowed through a firewall)...
>
or maybe something along the lines of "ok I have queried these
>
interfaces, I know this one is up, now I can do a more specialized
>
testing to see if I can use this protocol over this interface"...
>
{snip}
You're right about this.
This would work under Open Transport as well, TN1145 describes how to get
the interface info for PPP.
-But this only tells your application if you're connected to the net, not
if you for instance can retrieve a Web-page. So to find out whether the
user is able to browse the Web, you'd have to send something out for Port
80, like a GET command and see if it's successful.
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.