AdamWhitehouse
Programmer
I am writing an applicatation that has multiple (4)winsocks on, in the form of an array, these are being used to control "intelligent cameras". When i try to connect using winsock
.connect occasionally the connection will fail and time out, I reset the winsock with winsock
close, and after a for: doevents: next delay I try to reconnect, here's my problem the
localport has not been released ("Address in Use" error)
to get round this problem, after each connection failure I increment the localport and connect no problem, but I know this is bad codeing, why is it happening and how can I correct it?
localport has not been released ("Address in Use" error)
to get round this problem, after each connection failure I increment the localport and connect no problem, but I know this is bad codeing, why is it happening and how can I correct it?