Indy 10: How to check if TIdPOP3 is really online! ("Connected" is very unreliab

Giganews Newsgroups
Subject: Indy 10: How to check if TIdPOP3 is really online! ("Connected" is very unreliab
Posted by:  meolus (atoz…@meolus.de)
Date: Sat, 27 Aug 2005

Since I am using Indy 10 I have got troubles with querying the TIdPOP3-Component for online-state (TIdPOP3-Component.Connected). For example reproducible: if I remove the LAN-cable while TIdPOP3 is connected an has got transfered some datas, I toddle in the trap of a closed connection - so long, so well. The property TIdPOP3.Connected is still "true" and i will do something with the component i got "Socket Error # 10054 Connection reset by peer".

So how can I check if TIdPOP3 is really still connected (and realize a "connection reset by peer" without getting a exception!)?

Sorry for my bad english and the form, is my first post here and i am out of practise (I am German) :-/

Yours sincerely
Meolus

Replies