-
Winsock help
I have 2 winsock controls on my form winsock1 and winsock 2 and both at index 0.
My server has 2 winsock controls again both set at index 0 and both set to listen, on form load, on different ports.
Well i conect winsock1(0) to the server fine(on port 10000), but when i connect winsock2(0)(on port 20000), or try to, it closes both winsock1 and winsock2.
I did this a while back with no problem i.e connecting more than one sock to a server. Whats likely the prob here?
-
When you get the connection request are you loading a new winsock and accepting the request with it?
-
u don't have to use two winsock controls on the server side. a single winsock control can listen to many clients at a time.
-