• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: cocoa-dev digest, Vol 1 #791 - 13 msgs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Prev by Date: Re: Are you on-line?
  • Next by Date: Re: Right way to get system preference values
  • Previous by thread: Re: Are you on-line?
  • Next by thread: Re: Right way to get system preference values
  • Index(es):
    • Date
    • Thread