com.TcpRequest.getAsyncResponse

Returns the response after performing a TCP request, asynchronously.

Syntax

getAsyncResponse()
  RETURNS com.TcpResponse

Usage

The getAsyncResponse() method returns a TCP response as a com.TcpResponse object, after a call to doRequest(), doXmlRequest(), doTextRequest(), or beginXmlRequest() / endXmlRequest() calls.

Unlike getResponse(), the getAsyncResponse() method does not stop the program flow: The method returns NULL if the response was not yet received.

In case of error, the method throws an exception and sets the status variable. Depending on the error, a human-readable description of the problem is available in the sqlca.sqlerrm register. See Error handling in GWS calls (status).

The int_flag variable is checked during GWS API call to handle program interruptions, for more details, see Interruption handling in GWS calls (int_flag)