Internet Direct (Indy) Version 9.0.1 Beta
|
function GetResponse(const ATag: String; const AAllowedResponses: array of SmallInt): SmallInt; overload; function GetResponse(const AAllowedResponses: array of SmallInt): SmallInt; overload;
GetResponse clears the contents of CmdResultDetails prior to retreiving a response from the server using the ReadLnWait method, and adding the line to CmdResultDetails.
When the response line is an untagged server response, GetResponse will continue to read response lines until the tagged response containing the ATag value is received. If a tagged response is received that does not match ATag, an EIdException will be raised. The ResultNo property is set to the value determined by examing the reponse line.
GetResponse calls the inherited CheckResponse method, and sets the return value to the ResultNo from CheckResponse.