Internet Direct (Indy) Version 9.0.2 Beta
TIdNNTPServer.OnCommandQuit
Specifies the NNTP QUIT command event handler.

property OnCommandQuit: TBasicEvent;
Description
OnCommandQuit identifies the TGetEvent event handler used to respond to the NNTP QUIT command, as described in RFC 977.

QUIT is used to inform the server that the client connection should be closed. The server process should acknowledges the QUIT command, and then close the connection to the client. This is the preferred method for a client to indicate that it has finished all its transactions with the NNTP server.

If a client simply disconnects (or the connection times out, or some other fault occurs), the server should gracefully cease its attempts to service the client.

Applications should assign a procedure to the event handler in order to respond to the NNTP command, or the server will return the default message:

  500 command not recognized