Dart Home | PowerTCP SSL for ActiveX | Custom Development | Reply | PowerTCP SSL for ActiveX Topics | Forums |
Author | Forum: PowerTCP SSL for ActiveX Topic: How can I tell if a PC is on-line using only Dart controls? |
BobWaitz bobw@mhccom.com From: Burnsville, MN USA Posts: 12 Member Since: 01/09/06 |
posted October 20, 2006 12:48 PM I wrote a server application that listens on a particular port. I also wrote a client application that connects to that port. Both use the Dart controls set to SecureNone. Every once in a while my server application hangs. Every once in a while the network/internet connection is down or the server is down for preventive maintenance. Unfortunately, I can't tell which problem has occurred. The server is behind a firewall that blocks everything, even PING, allowing only traffic on the port I am listening on. I need to figure out how to tell if my application is hung/not running or if the server is off-line due to network problems or the machine being out of service. When I do the SecureTcp1.Connect, I get a return error of 10060 in both cases. Is there something I can do with my Dart toolkit to probe that one port and see if the machine is actually there or not? Thanks, Bob |
Raj From: Rome, NY, USA Posts: 389 Member Since: 02/01/06 |
posted October 20, 2006 5:34 PM Bob, There will be two different error messages for two scenarios: 1. Error#10061 Remote machine found, but server not running on the specified port! 2. Error#10060 If remote machine cannot be found! Note that in situation (2) you cannot say if the server was OFF, or was it the network failure that prevented it from being located by the clients. Because in both the situations, your server will not be able to communicate with the clients. Thanks, Raj |
Reply | PowerTCP SSL for ActiveX Topics | Forums |
This site is powered by PowerTCP WebServer for ActiveX |