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



Gerry,

Check Scott Klement's site (www.scottklement.com) It has some nice examples
of sockets programming...

Luis Rodriguez
IBM Certified Systems Expert — eServer i5 iSeries


On Wed, Jan 20, 2010 at 11:41 AM, Chris Bipes
<chris.bipes@xxxxxxxxxxxxxxx>wrote:

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.
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.



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.