Topic Path: Symbol Reference > Classes > TDNSHeader Class > TDNSHeader Methods > ParseQuery Method
ContentsIndexHome
PreviousUpNext
TDNSHeader.ParseQuery Method

Parses and updates property values found in the raw DNS header.

function ParseQuery(
    Data: TIdBytes
): integer;
Parameters 
Description 
Data 
Raw byte values to load into the properties for the DNS header. 

Integer - 0 on success, or -1 on error.

ParseQuery is an Integer function used to parse and store property values found in the raw DNS header in Data. 

ParseQuery returns 0 (zero) on successful completion of the parsing operation, or -1 when Data does not contain at leasst 12 byte values as required in a valid DNS header. 

ParseQuery converts numeric values in Data from their network byte order representation to their host-specific byte order representation prior to storing the values in the properties for the DNS header. This includes the following properties: 

 

Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.