10-15-2015 06:53 AM
I am using tcp/ip server client protocol using in my project...and its working fine,but some time my client will hang how to detect error in Server.
Thank you in Advance
10-15-2015 08:37 AM
On one side you can ping the server IP to detect wether it is responsive. You can set a short timeout for InetPing so that your app is not handicapped.
On the other hand, you must manage TCP_DISCONNECT event in the client callback and take the appropriate countermeasures if it fires.
Once made this, the server usually have no other troubles, but I suggest you to record all abnormal event you get together with any detail available, including runtime errors and function on error.