Indy 9
|
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.