How to disconnect to a indy server?
Posted on 2006-07-10
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.