I'm using TIdTCPClient
. It seems to be a simple thing to do, but I can't find a way to change the error message "Already connected"
when I execute tcpClient->Connect();
So I set the Host
, Port
, and ConnectTimeout
, and after all this I call the Connect()
.
I tried to change that error message using WriteLn()
, maybe is that the solution, but I could be using that in a wrong way.
I only want to show to the client (maybe in a ShowMessage()
or in a TLabel
), not necessarily to the server.