Set a retry callback to dynamically determine each retry period.
Each time an operation is sent, the specified callback is used to determine the time until the next retry. This allows the application dynamic control over the retry behavior of the operation.
- Note
- Either a retry period or a retry callback may be set, but not both. The most recent call to either DOFOperationControl_SetRetryPeriod or DOFOperationControl_SetRetryCallback will apply.
- Parameters
-
self | A operationControl. This must not be NULL. |
callback | A user-defined callback that will determine if a retry should take place. This must not be NULL. |
- Returns
- TRUE if the retry callback was set, FALSE otherwise.
- See Also
- DOFOperationControl_SetRetryPeriod