Indy 9 | Content | Index | Reference

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

    TIdQOTDUDP = class(TIdUDPClient)

Unit
IdQOTDUDP
Description
TIdQOTDUDP implements a UDP-based 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.

TIdQOTDUDP.Port
TIdQOTDUDP
Port number used for the connection to a QOTD host.

    property Port: Integer;

Description
Port is an Integer property that represents the port number used in a connection to a QOTD host. Port is redefined in TIdQOTD to specify the default value for the property as required by the QOTD protocol (IdPORT_QOTD).

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

    property Quote: String;

Description
Quote is a read-only String property that queries 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.

TIdQOTDUDP.Create
TIdQOTDUDP
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 TIdQOTDUDP 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.