× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Ping would be unreliable. It doesn't guarantee that the service is up.
If any checking is to be done it needs to be at the layer that the
service runs on (eg. TCP / HTTP / etc). even then your application
should be aware when a TCP connection breaks and handle the failed
transaction then.

-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of rob@xxxxxxxxx
Sent: Wednesday, January 20, 2010 10:35 AM
To: Midrange Systems Technical Discussion
Subject: Re: Internet Connection Sensor

In CL you could do
PING RMTSYS('NRA.ORG') MSGMODE(*QUIET *ESCAPE)
MONMSG MSGID(TCP3210 TCP3202 TCP3213) EXEC(GOTO CMDLBL(ALERT))
If that fails, grab your guns and head for the woods. :-)
Caution: Some sites block pings.

I know jack about sockets programming but couldn't you open a socket to
the target and see if they are up?


Rob Berendt

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.