[RESOLVED] Winsock again...
Im very sorry guys but im not still an expert on winsock...:blush:
ok heres my problem, i have manage to build a VB6 server and client app and they run very well, but this problem arise when the client app is being terminated "abnormally" like for example the computer is being power off via the power switch so the client did not exited properly and did not informed the server app that it has to exit, so the server app still stay "connected".
i put a winsock_error sub which closes the winsock, but it doesnt fire when the above situation occurred...
any (code) suggestion on how am i going to monitor that situation???
help please thanks...
Re: [RESOLVED] Winsock again...
I'm glad it helped.
To my chagrin, I wish now that I'd used TK (TCP KeepAlives) and AK (Application KeepAlives) when I'd named those. Oh well, I hope it isn't too confusing.
I suspect that somebody could clean up the AK version's code a little too, especially in the Timer event handler. And maybe experiment to see whether or not it is worthwhile to try several probes or just one when a connection is found to be inactive. Cutting that second time interval out would make the logic simpler, and I don't think it accomplishes the same thing that repeated probes at the TCP level do.