Click to See Complete Forum and Search --> : Winsock control and asynchronous


jasiu
October 24th, 2001, 12:27 PM
I am using the standart Winsock control provided in Vb6 to connect to other hosts on the net, but each connect freezes the application, is there a method in which I can make the Winsock control to asynchronous communication ? It really looks bad when the application freezes just to resolve a host name, what can I do ?

tia

phunkydude
October 24th, 2001, 03:17 PM
The WinSock control is an asynchronous Control (the events are fired when a conneciton is made, data is received, etc).
Check that you have the right Service Pack installed (NT4 SP6 fixed some WinSock problems). Check that your IP settings are correct.
You can also use the getsockopt and setsockopt APIs to tweak the socket (check MSDN, Winsock 2 reference).
I prefer using Winsock API functions instead (yep, I like getting dirty).
Mail me, send Private Message, if you're still struggling.