Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » ElevateDB Technical Support » Support Forums » ElevateDB General » View Thread |
Messages 1 to 4 of 4 total |
Testing for remote server availablity |
Wed, Nov 5 2014 10:03 AM | Permanent Link |
Richard Beeston Lablogic Systems Ltd | Hi,
I'm doing a program for remote sites, branches etc. I'd like to be able to test for the main site server availability.. i.e. can i connect to it? Is there any mechanism in place to do this? At present i have a simple query which i run to try to access a remote store. If it fails then i know i've not got access to the server if it works then i do. But there's a delay in the test, a timeout of about 5 seconds. Is there a faster way to check? Thanks Richard |
Wed, Nov 5 2014 10:42 AM | Permanent Link |
Matthew Jones | Richard Beeston wrote:
> a timeout of about 5 seconds. Is there a faster way to check? The internet will always pause at least that long in trying to make the connection, so the only way you can overcome the delay from a user point of view is to have the test in a thread. Beyond that, you could probably just open a socket to the server port to see if it connects or not, but that just saves the data lookup, and doesn't tell you if the right server is on the port or not. -- Matthew Jones |
Thu, Nov 6 2014 4:56 AM | Permanent Link |
Richard Beeston Lablogic Systems Ltd | Ok Ta.. just wanted to check i wasn't missing something in the session/database area that did this already.
|
Fri, Nov 7 2014 5:00 AM | Permanent Link |
Adam Brett Orixa Systems | Richard
Just to confirm, I asked Tim the same question directly a while back & he said that the best way to detect a remote server was just to try to open a Store, and get back the file-count. |
This web page was last updated on Saturday, May 4, 2024 at 09:18 PM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |