Re: how to determine network yes or no [message #36125] |
Mon, 25 August 2003 12:13  |
Rick Towler
Messages: 821 Registered: August 1998
|
Senior Member |
|
|
"Reimar Bauer" wrote in message ...
> While writing a newsticker routine by idl I like to test the results
> locally. So I like to have a switch in the routine to deterimine network
is
> available or not.
>
> How to do this?
I think the SOCKET procedure would be your only platform independent option.
Try connecting with a reliable http host:
socket, 1, 'www.google.com', 80, connect_timeout=5, error=e
Or maybe some other creative use.
-Rick
|
|
|
|
Re: how to determine network yes or no [message #36257 is a reply to message #36125] |
Wed, 27 August 2003 09:21  |
henrygroe
Messages: 30 Registered: August 2003
|
Member |
|
|
"Rick Towler" <rtowler@u.washington.edu> wrote in message news:<bidn7p$23qq$1@nntp6.u.washington.edu>...
> I think the SOCKET procedure would be your only platform independent option.
> Try connecting with a reliable http host:
>
> socket, 1, 'www.google.com', 80, connect_timeout=5, error=e
>
> Or maybe some other creative use.
>
> -Rick
Neat; I hadn't used 'socket' before.
IDL 5.6 help says socket is only implemented on UNIX and Windows
platforms.
Does anyone know if 'socket' exists in IDL for Mac OS X? (I know OSX
is unix underneath, but am unsure if RSI considers OSX a 'unix
platform'.)
Thanks!
-Henry
|
|
|