Im very sorry guys but im not still an expert on winsock...

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...