Difference between revisions of "TPop3Cli.Noop"
(Created page with ' Main page -> ICS component reference -> TPop3Cli -> Noop == Definition == <syntaxhighlight lang="delphi">…') |
|||
Line 9: | Line 9: | ||
== Description == | == Description == | ||
− | Sends '''NOOP''' command to a POP3 server. This command is valid only during '''TRANSACTION''' state. It doesn't do anything useful in particular but you can use it to prevent idle-timeout by sending it periodically. The server should reply only with positive response which you can handle in [[TPop3Cli.OnRequestDone | OnRequestDone]] event. | + | Sends '''NOOP''' command to a POP3 server. This command is valid only during '''TRANSACTION''' state. It doesn't do anything useful in particular but you can use it to prevent idle-timeout by sending it periodically. The server should reply only with positive response which you can handle in [[TPop3Cli.OnRequestDone | OnRequestDone]] event. Note that some servers might limit the number of NOOP commands you issue in a row and respond with an error code if you go over that limit, so you may not be able to maintain idle state forever. |
== Delphi Example == | == Delphi Example == |
Latest revision as of 22:43, 16 August 2011
Main page -> ICS component reference -> TPop3Cli -> Noop
Definition
<syntaxhighlight lang="delphi"> procedure Noop; virtual; </syntaxhighlight>
Description
Sends NOOP command to a POP3 server. This command is valid only during TRANSACTION state. It doesn't do anything useful in particular but you can use it to prevent idle-timeout by sending it periodically. The server should reply only with positive response which you can handle in OnRequestDone event. Note that some servers might limit the number of NOOP commands you issue in a row and respond with an error code if you go over that limit, so you may not be able to maintain idle state forever.
Delphi Example
<syntaxhighlight lang="delphi"> Pop3Cli.Noop; </syntaxhighlight>
C++ Example
<syntaxhighlight lang="cpp"> Pop3Cli->Noop(); </syntaxhighlight>