Indy 9
NNTPCommands
Specifies the NNTP commands and extensions recognized by the server implementation.
Description
NNTPCommands is a constant Array containing the String values recognized as valid commands or extensions in the NNTP protocol. NNTPCommands are used in TIdNNTPServer.Create to construct TIdCommandHandler instances stored in the TIdNNTPServer.CommandHandlers collection.

NNTPCommands are related to their TIdCommandHandler counterparts through the ordinal index position, stored in the TIdCommandHandler.Tag property, and the value stored in the TIdCommandHandler.Command property.

Refer to TIdTCPServer.CommandHandlersEnabled and TIdTCPServer.CommandHandlers for a more detailed description of the command event handler architecture.

Use the inherited TIdTCPServer.OnExecute to implement the NNTP servers capabilities using a single state and dispatching event handler.


Created with Doc-O-Matic 2 donated to Project JEDI. Commercial license available from the Doc-O-Matic site.