Indy 9
|
KnownCommands: Array [1..40] of string = ( 'ADMIN', 'AWAY', 'CONNECT', 'ERROR', 'INFO', 'INVITE', 'ISON', 'JOIN', 'KICK', 'KILL', 'LINKS', 'LIST', 'MODE', 'NAMES', 'NICK', 'NOTICE', 'OPER', 'PART', 'PASS', 'PING', 'PONG', 'PRIVMSG', 'QUIT', 'REHASH', 'RESTART', 'SERVER', 'SQUIT', 'STATS', 'SUMMON', 'TIME', 'TOPIC', 'TRACE', 'USER', 'USERHOST', 'USERS', 'VERSION', 'WALLOPS', 'WHO', 'WHOIS', 'WHOWAS' );
Known commands has significance when the DoExecute method is called using the TIdPeerThread. KnownCommands is used to identify a command and optional parameters read from the client connection, and to dispatch to an event handler used to implement the command functionality.