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



I would use the basic socket open. If you cannot open the remote host,
the service is unavailable. (whether it be the internet is down or
their server is down does not matter.) If you can connect, close the
connection and submit the transaction.

Not knowing exactly how you post the transaction, but assuming it is an
HTTP(s) post.

If you have not performed any socket programming, you may want to look
at various shareware sites for the iSeries and find an API that will
test a connection for you.

Chris Bipes
Director of Information Services
CrossCheck, Inc.

-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of
GKern@xxxxxxxxxxxxxxxx
Sent: Wednesday, January 20, 2010 7:57 AM
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.

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.