| Dart Home | PowerTCP Sockets for .NET | Custom Development | Reply | PowerTCP Sockets for .NET (Secure and Standard) Topics | Forums |
| Author | Forum: PowerTCP Sockets for .NET (Secure and Standard) Topic: Error using tcp ping |
| Alhambra9c From: Kenilworth, NJ USA Posts: 2 Member Since: 01/14/05 |
posted January 14, 2005 3:59 PM I get an error with code I copied from the dart site. Private Sub cmdPing_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdPing.Click ' ***The error is in the next line ' *** Value of type 'Dart.PowerTCP.Sockets.Segment' cannot be converted to 'Dart.PowerTCP.Sockets.EchoResult'.*** Dim er As EchoResult = Ping1.Send("10.10.41.59") ' EchoResult er describes the ping. Display properties of the EchoResult. Debug.WriteLine("Reply from " + er.RemoteAddress) Debug.WriteLine("Bytes " + er.Data.Length) Debug.WriteLine("Time " + er.ResponseTime) Debug.WriteLine("TTL " + er.TTL) End Sub |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted January 14, 2005 4:29 PM Works fine for me. I'm guessing that you actually put a Tcp control on the form, then renamed it Ping1 by mistake. |
| Alhambra9c From: Kenilworth, NJ USA Posts: 2 Member Since: 01/14/05 |
posted January 18, 2005 10:53 AM You got me on the right track, I didn't realize ping was a separate control. Thanks |
| Reply | PowerTCP Sockets for .NET (Secure and Standard) Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|