I have a server application that from start to the end just sends data and then my client recives the data and plot it.
The problem is that the client should be able to disconnect at any time.
Right now if i disconnect during the sending the server throws a EIdSocketError and i catch it and disconnect,
but the problem is that if i then try to connect to the server again the server throws a EIdSocketError again so the
client cant connect unlees i restart the client application? I think this has to do with that the port number still is occupied.
I nead to know how to handle a "bad" disconnection.