Internet Direct (Indy) Version 9.0.1 Beta
TIdTCPConnection.CheckResponse
Checks for a valid response in an array of allowable responses.

function CheckResponse(const AResponse: SmallInt; const AAllowedResponses: array of SmallInt): SmallInt; virtual;
Parameters
const AResponse: SmallInt
Response number to examine.

const AAllowedResponses: array of SmallInt
Array of response numbers allowed.

Returns
SmallInt - Response number encountered, or zero on error.

Description
CheckResponse is a SmallInt function used to check for the existence of the response number in AResponse in the array of allowable responses AAllowedResponses. If CheckResponse examines all allowable response and does not find AResponse, RaiseExceptionForCmdResult is called.