VB Ping Control or DLL Call for TCP/IP Network 
Author Message
 VB Ping Control or DLL Call for TCP/IP Network

I want to ping a computer by IP adres at an interval set by the timer in
Visual Basic. Does anyone know how i can make the ping and recieve
information back about the ping.

The most wanted solution is the direct method, by calling a DLL.

If you know a solution for this, Please react.



Wed, 18 Oct 2000 03:00:00 GMT  
 VB Ping Control or DLL Call for TCP/IP Network

Quote:

>I want to ping a computer by IP adres at an interval set by the timer in
>Visual Basic. Does anyone know how i can make the ping and recieve
>information back about the ping.

>The most wanted solution is the direct method, by calling a DLL.

Take a look at
http://home.earthlink.net/~butlerbob/vb/network/tcpip/ping.htm

The code there could be made into an ActiveX DLL if you want.



Wed, 18 Oct 2000 03:00:00 GMT  
 VB Ping Control or DLL Call for TCP/IP Network



Quote:
>I want to ping a computer by IP adres at an interval set by the timer in
>Visual Basic. Does anyone know how i can make the ping and recieve
>information back about the ping.

>The most wanted solution is the direct method, by calling a DLL.

>If you know a solution for this, Please react.

There's a sample on our Web site that makes use of the ICMP.DLL on
Win95 & NT. The full source for the sample (dsPing) is available.

http://www.dolphinsys.com

Steve

-----------------------------------------------------
Stephen Cramp              Dolphin Systems Inc.

http://www.dolphinsys.com  Fax: (519) 942-8111
See our Web site for TCP/IP controls, demos and samples



Fri, 20 Oct 2000 03:00:00 GMT  
 VB Ping Control or DLL Call for TCP/IP Network

Quote:

>I want to ping a computer by IP adres at an interval set by the timer in
>Visual Basic. Does anyone know how i can make the ping and recieve
>information back about the ping.

>The most wanted solution is the direct method, by calling a DLL.

>If you know a solution for this, Please react.

You have a couple of options here. One would be to use Microsoft's ICMP library,
but there are a couple of catches. The API is kind of clumsy in Visual Basic (it
involves passing data structures around), only permits synchronous pings, and
requires that your end-user be running Windows 95 or NT (you don't mention which
platform you're developing for, so this may or may not be a problem). Assuming
that you don't want to start from scratch, I'd recommend grabbing a sample which
shows you how to do this. As I recall, Dolphin Systems (www.dolphinsys.com) has
one posted on their samples page.

If you want to go the control route, then download a free evaluation copy of
SocketTools from our site (www.catalyst.com), which includes a 'ping' control.
One of the advantages of the control, over the direct ICMP function calls, is
that we automatically determine if your TCP/IP software is capable of creating
raw sockets -- and if it is, then we generate the ICMP ECHO datagrams directly,
bypassing the ICMP.DLL altogether. We also include a 'thunking layer' that
allows even a 16-bit control to be able to use either the Windows Sockets
library or the ICMP.DLL under Windows 95 and NT. And if you need to support for
Windows 3.1 with a 3rd party stack like Trumpet, the ping control will work
(where the ICMP.DLL approach won't).

-Mike



Wed, 01 Nov 2000 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. I want to write a TCP/IP ping in VB-5 can anybody help me

2. TCP/IP through calls to WINSOCK.DLL

3. TCP/IP through calls to WINSOCK.DLL

4. Ping-Tcp/Ip

5. VB tools for tcp/ip calls

6. TCP/IP Socket communication DLL/Control??

7. PING, Is there an API (or other method) to call ping from VB

8. Ping Network IP's for names

9. Controlling TCP/IP status from VB in Win95

10. sending strings via the ICP TCP/IP control with vb

11. TCP/IP Network

12. QuickBasic 4.5 and Networking (TCP/IP)

 

 
Powered by phpBB® Forum Software