Check to see is network connection status 
Author Message
 Check to see is network connection status

How do I check to see if I am still connected to our LAN?  I have a VB app
that needs to run in "local mode" if it gets disconnected.  In testing, I
have tried several things but they take too long to come back as failed.
(I am actually unplugging my network line from my PC to simulate this
event.)  This needs to happen in less than a second.  Thanks in advance for
your help.


Mon, 22 Apr 2002 03:00:00 GMT  
 Check to see is network connection status
Does this code help  ?

http://www.mvps.org/vbnet/code/network/internetgetconnectedstate.htm

--

Randy Birch, MVP Visual Basic

http://www.mvps.org/vbnet/
http://www.mvps.org/ccrp/


| How do I check to see if I am still connected to our LAN?  I have a VB app
| that needs to run in "local mode" if it gets disconnected.  In testing, I
| have tried several things but they take too long to come back as failed.
| (I am actually unplugging my network line from my PC to simulate this
| event.)  This needs to happen in less than a second.  Thanks in advance
for
| your help.
|



Wed, 24 Apr 2002 03:00:00 GMT  
 Check to see is network connection status


<How do I check to see if I am still connected to our LAN?

<Does this code help  ?
<
<http://www.mvps.org/vbnet/code/network/internetgetconnectedstate.htm

This might be more appropriate.  However, I haven't tried it so I
don't know if a disconnected  state will be indicated faster than
by using Dir() to check for a known  directory on a known machine
on the LAN.

  http://www.mvps.org/vbnet/code/network/ping.htm

--
Paul Marshall



Fri, 26 Apr 2002 03:00:00 GMT  
 Check to see is network connection status
I would suspect that it might be. Would not attempting to Dir() against a
known directory produce the same delay as attempting to access a
disconnected share in explorer?

--

Randy Birch, MVP Visual Basic

http://www.mvps.org/vbnet/
http://www.mvps.org/ccrp/


| On Thu, 04 Nov 1999 11:18:13 -0800, "Cathy smith"

|
| <How do I check to see if I am still connected to our LAN?
|

|
| <Does this code help  ?
| <
| <http://www.mvps.org/vbnet/code/network/internetgetconnectedstate.htm
|
| This might be more appropriate.  However, I haven't tried it so I
| don't know if a disconnected  state will be indicated faster than
| by using Dir() to check for a known  directory on a known machine
| on the LAN.
|
|   http://www.mvps.org/vbnet/code/network/ping.htm
|
| --
| Paul Marshall



Fri, 26 Apr 2002 03:00:00 GMT  
 Check to see is network connection status

<I would suspect that it might be. Would not attempting to Dir() against a
<known directory produce the same delay as attempting to access a
<disconnected share in explorer?

Since I had not tried it before,  I didn't know how quickly
the 'ping'  code would  report failure.   Having now tested
it, I see that it reports  failure here in about 0.2 to 0.7
seconds.  The Dir() call can take from about 2.5 seconds up
to about *70* seconds (in the case where the  directory had
previously been accessed and is now unavailable) to fail.

--
Paul Marshall



Sat, 27 Apr 2002 03:00:00 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. How to check network connection status.

2. Check Status of ODBC Connection

3. !VB5: How to check status on a network sharename

4. Using VBscipt to check Network status....

5. Checking Winsock Connection Status

6. how to check ado connection transaction status???

7. Help: How Can I Check The Status Of A RAS Connection

8. Checking the Status of a Network Client

9. Detecting dial-up networking connection status

10. How to Check for Network Connection Acc 2 ?

11. Checking Network Connection

12. Checking For A Network Connection

 

 
Powered by phpBB® Forum Software