OS5: Connecting timeout to ODB problem...
Andy Hilton
andyh at totallybrilliant.com
Tue Dec 27 07:49:07 EST 2011
Watch out for the ping - it can take just as long if it too gets hung up !!
On Dec 27, 2011, at 4:58 AM, ADJob wrote:
> Hej,
>
>> An old problem, ping does offer some help, but also suffers problems when
>> the host is down and delaying it's answer. I refer to the Omnis ping of
>> course, before the "Command Line Gang" beat me to a pulp.
>>
>> I sometimes use an http command to check that the IP address is alive,
>> but not always guaranteed. Detecting if an IP is alive is problematical,
>> unless it is under your control, then you can do what ever you like.
>
>> You may take a look at : WebDevSetConfig,
>
> Thanks a lot for the clues!
>
> I found the TCPPing command, which seems to help a lot. I should look at
> WebDevSetConfig as well.
>
> TCPPing (127.0.0.1) Returns lv_OK
> If lv_OK<0
> Do msg.$error('odb')
> Quit method
> End If
>
>
> Regards,
>
> Mats Olsson, ADJob Nordic AB, Sweden
>
>
> _____________________________________________________________
> Manage your list subscriptions at http://lists.omnis-dev.com
More information about the omnisdev-en
mailing list