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



Hey Gary - you should have a good time with the API.

I don't know if you need to look for that - you should be getting some kind of return code that indicates that it could not "...connect to host..."

Every step in the FTP session is a call to a subprocedure, so you don't have to monitor for stuff in messages like this, generally. It's completely different from the technique of running an FTP script in batch with overrides of stdin and stdout, then reading the results in a spooled file and looking for various text strings - which are not guaranteed to be the same from one FTP server to another!!!

You can see some of Scott's output on this tool - one is at http://iprodeveloper.com/rpg-programming/ftpapi-scotts-utility-assist-batch-ftp-programming - the ftp_open() subprocedure is what connects and returns a session number - he doesn't mention in that article whether something like a negative session means no connection - check the examples in the package.

But Scott replied to someone in these lists at this URL - http://archive.midrange.com/midrange-l/201111/msg00093.html - and a -1 returned from ftp_open means that you could not connect - just what you want to know, I think.

HTH
Vern

On 9/10/2014 3:02 PM, Gary Thompson wrote:
Just installed FTPAPI with hopes to catch msg from FTP host:
'Cannot connect to host 000.000.000.000 at address . Try again later.'
Goal is to re-schedule the transfer for a later time.
All comments welcome by this FTP novice



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.