Hi, I have an application that uses several TCP and UDP connections (all as an array)
I have one Main-application and several clients that connect to the Main (via a TCP connection, all with different SocketNr). For the development I use the loopback IP-address, so I have all applications on one computer (normally they are all seperated)
All connections run normal as long as I run the application only once.
But when closing the application and then restarting it happens (sometimes????) that a specific client won't connect. I can only get it to work again when restarting the computer, so I believe it'S a problem with sockets which are not cleared. Is their a way to find and clear blocked sockets?
When closing the Main-application, all the clients are closed too (the Main application is closed by the MainForm_Unload which closes all connections before unloading himself, and the clients will run their MainForm_Unload in the winsock_close event).




Reply With Quote