comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: how to determine network yes or no
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: how to determine network yes or no [message #36125] Mon, 25 August 2003 12:13 Go to next message
Rick Towler is currently offline  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 #36127 is a reply to message #36125] Mon, 25 August 2003 04:55 Go to previous messageGo to next message
Haje Korth is currently offline  Haje Korth
Messages: 651
Registered: May 1997
Senior Member
Reimar,
I thought this one is easy: Network not available -> IDL starts in demo
mode, Network available -> Flexlm finds the license and IDL starts. :-)
Ok, I am just kidding! I am afraid that I dont have the answer you are
looking for.

Greetings,
Haje

--

"Reimar Bauer" <R.Bauer@fz-juelich.de> wrote in message
news:biagjg$d5s2$1@zam602.zam.kfa-juelich.de...
> Hi,
>
> 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?
>
> Reimar
>
> --
> Forschungszentrum Juelich
> email: R.Bauer@fz-juelich.de
> http://www.fz-juelich.de/icg/icg-i/
> ============================================================ ======
> a IDL library at ForschungsZentrum Juelich
> http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_lib_intro. html
>
Re: how to determine network yes or no [message #36257 is a reply to message #36125] Wed, 27 August 2003 09:21 Go to previous message
henrygroe is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Sky map in idl
Next Topic: Re: what is an efficient lossless compression way to store a gray-scale image

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 16:06:52 PDT 2025

Total time taken to generate the page: 0.00337 seconds