Indy 9 | Content | Index | Reference

TIdQOTD
Hierarchy, Properties, Methods, Events, See Also, Unit: IdQotd
Implements a Quote of the Day Protocol client.

    TIdQOTD = class(TIdTCPClient)

Unit
IdQotd
Description
TIdQOTD implements a Quote of the Day Protocol (QUOTD) client 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.

TIdQOTD.Port
TIdQOTD
Port number used for the server connection.

    property Port: integer;

Description
Port is an Integer property that identifies the server port number server used for the client connection. By convention, some internet protocols reserve port number including:

- 21 - FTP

- 25 - SMTP

- 80 - HTTP

- 119 - NNTP

A client application may define it's own port to connect to a server running the same port.

TIdQOTD.Quote
TIdQOTD, See Also
Connects and retrieves a quote from the QOTD server.

    property Quote: String;

Description
Quote is a read-only String property that connects to the Quote of the Day server and retrieves a quote.

Be sure to set the Host property to the Quote of the Day server before calling Quote.

TIdQOTD.Create
TIdQOTD, 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 instantiates a new TIdQOTD component and sets the default port to the standard port number used for the Quote of the Day protocol (IdPORT_QOTD).

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