Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
TIdTelnet
#3
Thanks rlebeau.

I followed what you said and it seems to work now Smile

What I did was call IdTelnet.Disconnect from IdTelnet.TelnetThread.OnException.
This calls IdTelnet.OnDisconnected event in the case of abnormal socket disconnect,
so the application can respond to all kinds of disconnections (graceful or otherwise)

I also added a form variable fIsTelnetConnected that is updated on IdTelnet events
OnConnected and OnDisconneted, since IdTelnet.IOHandler.Connected can
return a false positive, as in the case of abnormal disconnect.
Reply


Messages In This Thread
TIdTelnet - by omarreis - 08-23-2022, 11:32 AM
RE: TIdTelnet - by rlebeau - 08-23-2022, 04:29 PM
RE: TIdTelnet - by omarreis - 08-24-2022, 12:15 PM
RE: TIdTelnet - by rlebeau - 08-25-2022, 05:48 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)