Hi
I'm using TIdTelnet client in my Firemonkey project to receive streaming text.
Works fine for iOS and Android, but on Windows I cannot detect when the client was disconnected by the server. If I try to send data on the closed socket I get 10054 error.
I tried OnDisconnect and OnStatus events, but it seems that those are not called when the socket is closed by the server.
How can I detect that the client was disconnected by the server on Windows ?
Thanks
Omar
I'm using TIdTelnet client in my Firemonkey project to receive streaming text.
Works fine for iOS and Android, but on Windows I cannot detect when the client was disconnected by the server. If I try to send data on the closed socket I get 10054 error.
I tried OnDisconnect and OnStatus events, but it seems that those are not called when the socket is closed by the server.
How can I detect that the client was disconnected by the server on Windows ?
Thanks
Omar