Internet Direct (Indy) Version 9.0.2 Beta
TResultRecord.Parse
Parses the raw data for a resource record from a DNS response.

procedure Parse(CompleteMessage: String; APos: Integer); virtual;
Parameters
CompleteMessage: String
Raw data for the resource record from a DNS Answer.

APos: Integer
Integer position where data values begin in the DNS response (One-based).

Description
Parse is a virtual procedure that allows the collection item to perform parsing required to extract property values from the raw data for the resource record, as specified in CompleteMessage.

APos is the one-based integer position where data for the resource record can be located in the values specified in CompleteMessage.

Parse is not implemented in TResultRecord, and should be overridden in TResultRecord descendant classes to perform parsing specific to the content for the resource record type.

Parse is used by TIdDNSResolver when resolving a DNS query, and parsing the answer values returned in the DNS response.