TIdQOTDServer
Defines an implementation framework for a Quote of the Day Protocol server.
Unit
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.
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.
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).
Specifies an event handler for QOTD commands.
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.