Subject RE: [IBO] Best way to deal with "Unable to complete network request to host "XX.X.XXX.XXX"?
Author Jason Wharton
Chuck,

There is a method of the TIB_Connection component called VeryifyConnection
(spelling?). It attempts an API call to retrieve some information from the
server. If it is successful then it returns true. Otherwise, it returns
false after it has timed out.

Aside from this, I don't know what else to suggest.

Jason Wharton
www.ibobjects.com


-----Original Message-----
From: IBObjects@yahoogroups.com [mailto:IBObjects@yahoogroups.com]
Sent: Friday, November 08, 2019 10:34 AM
To: IBObjects Listserve
Subject: [IBO] Best way to deal with "Unable to complete network request to
host "XX.X.XXX.XXX"?

Hello:

I have a program which uses a cheap web site (that's how I feel at the
moment about it :) ) to host a security database. I have written the logic
to test the internet connection then try to connect to the web site security
database.

I use a TRY Connect Except...

But in this real world example when the web site is down (hosting company
knows of the issue, apparently the node is down), the code to deal with this
does not work.

How do I deal with this in IBObjects? Is there some way of testing the
connection. I actually ping the IP address and that does not seem to be
enough.

Thank you!

Chuck Belanger

who is mostly an acupuncturist who got sucked into doing all this



------------------------------------
Posted by: Chuck Belanger <phytotech@...>
------------------------------------

___________________________________________________________________________
IB Objects - direct, complete, custom connectivity to Firebird or InterBase
without the need for BDE, ODBC or any other layer.
___________________________________________________________________________
http://www.ibobjects.com - your IBO community resource for Tech Info papers,
keyword-searchable FAQ, community code contributions and more !
http://tracker.ibobjects.com - your portal to submit and monitor bug reports
http://community.ibobjects.com - your portal to purchase and upgrade
------------------------------------

Yahoo Groups Links