CWinHttpRequest.WaitForResponsemethod
Waits for an asynchronous Send method to complete, with optional time-out value, in seconds.
Syntax
FUNCTION WaitForResponse (BYVAL nTimeout AS LONG = 0) AS BOOLEAN
Parameters
| Name | Description | |
|---|---|---|
nTimeout | Optional. Time-out value, in seconds. Default time-out is infinite. To explicitly set time-out to infinite, use the value -1. |
Return value
TRUE or FALSE.
Description
Waits for an asynchronous Send method to complete, with optional time-out value, in seconds.
Remarks
This method suspends execution while waiting for a response to an asynchronous request. This method should be called after a Send. Calling applications can specify an optional Timeout value, in seconds. If this method times out, the request is not aborted. This way, the calling application can continue to wait for the request, if desired, in a subsequent call to this method.
Calling this property after a synchronous Send method returns immediately and has no effect.
Reference
- Defined in AfxNova/CWinHttpRequest.inc:216
- Documented in COM/CWinHttpRequest Class.md
- Topic: CWinHttpRequest Class