Indy 9 | Content | Index | Reference

TIdDICTOtherEvent
Unit: IdDICTServer
Specifies the event type for the DICT OPTION or other unrecognized commands.

    TIdDICTOtherEvent = procedure ( Thread: TIdPeerThread; Command, Parm:String ) of object;

Unit
IdDICTServer
Parameters
Command
Command to be performed.
Parm
Parameters for the command.
Thread
Execution thread performing the command.
Description
TIdDICTOtherEvent specifies the event type for the DICT OPTION or other unrecognized commands.

TIdDICTServer uses the OnCommandOption event handler to respond to the DICT OPTION command, which informs the server that the client wishes to utilize one of the defined protocol options.

At the current time, OPTION MIME is the only recognized option. In the future, standard extensions to this protocol should be proposed which allow the client to request certain content types or encodings.

OPTION MIME requests that all text responses be prefaced by a MIME header, as described in RFC2045, and followed by a single blank line (CRLF). If a client requests this option, then the client MUST be able to parse Content-Type and Content-transfer-encoding headers, and MUST be able to ignore textual responses which have an unsupported content or encoding. A client MUST support the UTF-8 encoding described in RFC2044.

OPTION MIME is a REQUIRED server capability, and all DICT servers MUST implement this command.

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