× 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.



Hi Jerry,

An easy way would be to use sockets (the HTTPAPI of Scott for example)
and do an HTTP get of a website with a very high uptime (for example
Google or Microsoft).

Kind regards,
Paul

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of
GKern@xxxxxxxxxxxxxxxx
Sent: woensdag 20 januari 2010 16:57
To: midrange-l@xxxxxxxxxxxx; rpg400-l@xxxxxxxxxxxx
Subject: Internet Connection Sensor

Not sure if this is the correct place to ask so I cross posted in
midrange
and rpg-l:

Yesterday our internet provider had an outage that affected their
customers within a large portion of the city. Consequently we were
affected too.

We have an RPG application that accepts credit card payments and then
uses
Payware Transact from Verifhone to process the payment. But when the
internet connection died we didn't get any response from the
transactions
that were in process when the internet connection died.

So the question becomes this: Is there a way (from RPG) to detect that
the
internet connection is active before submitting the transaction? I know
that this wouldn't be foolproof because the internet connection could be

lost immediately after a successful 'detection attempt'. But this would
at
least enable us to detect and notify users when the internet connection
is
down, which would limit the number of transactions that would not
receive
a response.

Thanks!

Regards, Jerry

Gerald Kern - MIS Project Leader
Lotus Notes/Domino Administrator
IBM Certified RPG IV Developer
The Toledo Clinic, Inc.
4235 Secor Road
Toledo, OH 43623-4299
Phone 419-479-5535
gkern@xxxxxxxxxxxxxxxx


This e-mail message, including any attachments, is for the sole use of
the
intended recipient(s) and may contain confidential and privileged
information. Any unauthorized use, disclosure or distribution is
prohibited. If you are not the intended recipient, please inform the
sender by reply e-mail and destroy this and all copies of this message.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.