Winsock

T

Tran Hong Quang

Hi,
I follows the instructions from Microsoft to create a sample using Winsock,
here is the link:
http://msdn.microsoft.com/library/d...-us/vbcon98/html/vbconusingwinsockcontrol.asp

I created 2 forms, put Microsoft Winsock ActiveX on each form, copy and past
the sample code. One form is working as Server, the second form is working as
Client. What I typed on Client will appear on Server. But if I close either
Server or Client form, the remain will be halted. I think killing one end of
TCP session will make the other end to be hang. How to solve this problem?
and how to set time-out period so that the remain form will automatically
release TCP session if the other end was closed?

Thanks
Quang
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top