The TCPRequest class / com.TCPRequest methods |
Returns the response after performing a TCP request, asynchronously.
getAsyncResponse() RETURNING response com.TCPResponse
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)