IP driver: how to test at start-up whether the client can reach the server (Reported, not reproduced)

Applies to: reported in 2009 with the IP driver; the thread names no Clarion version.

Problem as reported

Over the internet the IP driver works if the address is right and the port is open. How can the client check for a valid connection and report the error, so the user can close the program, when no connection is made?

What the thread found

  • One poster opens an IP-enabled file and tests the error codes, found "buried in the docs": Share(SomeFile) then IF Errorcode() = 90 And FileErrorcode() = 30, then a message that the client cannot reach the server. He ended with HALT(0) as an example only. Another poster objected to HALT and preferred recovery; the first answered there is nothing to recover from when no connection exists.
  • A second poster said SHARE or OPEN on an IP-enabled file both work; per the docs the difference is the default access mode.
  • On a failed connection SHARE took about 15 to 20 seconds to return the error for the first poster.
  • The second poster put the test in a window procedure of its own, called after "Procedure setup standard formulas" in the main frame's Window Manager Init code. A wizard sheet shows "Connecting to server; please wait" and, if it fails, a second sheet asks for connection details and offers a retry or Cancel. The procedure returns a value to the frame, and the frame returns LEVEL:Fatal to cancel start-up. His message says to wait up to one minute.
  • For a progress bar during the wait, one poster suggested another thread that updates the bar on a timer.

Caveats

  • The maximum time before SHARE or OPEN gives up was asked and not answered; 15 to 20 seconds is one poster's observation.
  • The original poster did not say whether this solved his case.

Today (2026)

Not reproduced. This entry records a 2009 report. A reader on a current build who has tested the error codes 90 and 30 on a failed connection is asked to confirm or close the entry.

Sources: Neville W. (Jun 2009, the question), Chuck, Paul, Rich F. (Jun 2009) in softvelocity.clarion.databasedrivers.