Re: cocoa-dev digest, Vol 1 #791 - 13 msgs
Re: cocoa-dev digest, Vol 1 #791 - 13 msgs
- Subject: Re: cocoa-dev digest, Vol 1 #791 - 13 msgs
- From: Simon Stapleton <email@hidden>
- Date: Thu, 01 Nov 2001 10:57:29 +0000 (GMT)
>
Subject: Are you on-line?
>
From: Johnny CN Lee <email@hidden>
>
To: <email@hidden>
>
>
Hi,
>
>
How can I determine if a user is on the Internet?
>
>
I'm writing a tool to monitor server performance. But I want it
does its job only if the user is on-line.
I assume that by 'on-line' you mean that there's a network route
available, and not 'the user is doing something that's accessing some
non-local-resource'.
If so, you will be wanting to look at the system configuration
framework (specifically the IP configuration / IP monitor agents) to
find out the status of the various links. Documentation on this in
the usual places...
Bear in mind that the machine could have multiple network interfaces -
multiple ethernet cards are not uncommon, airport cards, the works -
and that the 'loopback' device should probably be ignored.
Simon
--
PGP Key ID : 0x50D0698D
--
If the answer isn\'t obvious, the question is a distraction. Go find
an easier question.