Newsgroups : Borland : borland.public.delphi.internet.winsock : 2008 Jan : Re: how to abort current i/o TidPOP3 operation?

www.cryer.info
Managed Newsgroup Archive

Re: how to abort current i/o TidPOP3 operation?

Subject:Re: how to abort current i/o TidPOP3 operation?
Posted by:"Remy Lebeau (TeamB)" (no.spam@no.spam.com)
Date:Tue, 22 Jan 2008 12:09:01

"Iliya" <iliya00@list.ru> wrote in message
news:47921b66@newsgroups.borland.com...

> Sppose I decided to skip download of the current message, is
> there any way to gracefuly abort the operation and stay in
> TRNSACTION mode?

The only way to end the download, without disconnecting from the server, is
to throw an exception, such as by calling Abort(), from inside the OnWork...
event handlers.  Although that will terminate the actual download, doing so
will leave the remaining message data unread in Indy's InputBuffer and on
the socket.  You would still have to completely read (and discard) all of
that remaining data before you can safely issue another command, since the
message data would be interpretted as the next response data otherwise and
screw everything up.  So even if you end the download, you still have to
wait for all of the data to be received anyway.


Gambit

Replies:

In response to:

www.cryer.info
Managed Newsgroup Archive