Internet Direct (Indy) Version 9.0.1 Beta
TIdRFCReply.GenerateReply
Constructs the numeric result and message text for a response.

function GenerateReply: string;
Returns
String - RFC formatted response.

Description
GenerateReply is a String function used to construct the response using the values in NumericCode and Text. NumericCode is an optional value in TIdRFCReply, and can be omitted when only the Text portion of a response is significant in the protocol.

Text can contain multiple lines, and is generated using the continuation response mechanism common to many RFC-compliant protocols. For example, a response with the NumericCode of 200 and multiple lines in Text might be sent like the following:


    200-You were connected
    200-Your session started
    200 Ok