Indy 9 | Content | Index | Reference

TIdQOTDServer
Hierarchy, Properties, Methods, Events, See Also, Unit: IdQotdServer
Defines an implementation framework for a Quote of the Day Protocol server.

    TIdQOTDServer = class(TIdTCPServer)

Unit
IdQotdServer
Description
TIdQOTDServer defines an implementation framework for a Quote of the Day Protocol or QUOTD server as described in the Internet Standards document:

- RFC 865 - Quote of the Day Protocol (http://www.rfc-editor.org/rfc/rfc865.txt)

QUOTD is a simple protocol for retrieving a short quote from a server.

TIdQOTDServer.DefaultPort
TIdQOTDServer, See Also
Default port number for the server.

    property DefaultPort: integer;

Description
DefaultPort is a published property in TIdQOTDServer that identifies the default port number for the server, as described in the Quote of the Day Protocol specification. The default value for DefaultPort is IdPORT_QOTD.

TIdQOTDServer.Create
TIdQOTDServer, See Also
Constructor for the object instance.

    constructor Create(AOwner: TComponent); override;

Parameters
AOwner: TComponent
Owner of the object instance.
Description
Create is the constructor for the object instance that creates a new TIdQOTDServer instance and sets the default port to the standard port number used by the Quote of the Day protocol (IdPORT_QOTD).

TIdQOTDServer.OnCommandQOTD
TIdQOTDServer
Specifies an event handler for QOTD commands.

    property OnCommandQOTD: TIdQOTDGetEvent;

Parameters
Thread
Connection generating the event.
Description
OnCommandQOTD is a TIdQOTDGetEvent event handler that allows the QOTD server to respond to a request from a QOTD client connection.

Thread is the thread of execution for the client connection.

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