In vf 6.0, i use microsoft winsock control to connect to some other servers, it's OK.
When i use winsock ocx control to play the server role. Methods: listen, accept, senddata, getdata function properly but when client programs quit - call CientSock.close to close sock and then exit - my VF winsock server halt - it does not respond and i have to press CTRL+ALT+DEL to stop it.
I try the same code in Visual Basic. it's OK: when clients quit, ServerSock.State channge immediately and the program still work.
How can i work around this problem?
Thanks in advance
[sig][/sig]
When i use winsock ocx control to play the server role. Methods: listen, accept, senddata, getdata function properly but when client programs quit - call CientSock.close to close sock and then exit - my VF winsock server halt - it does not respond and i have to press CTRL+ALT+DEL to stop it.
I try the same code in Visual Basic. it's OK: when clients quit, ServerSock.State channge immediately and the program still work.
How can i work around this problem?
Thanks in advance
[sig][/sig]