API Reference | developer.brewmp.com API Reference | developer.brewmp.com

Developer

API Reference

AEECALLBACKUTIL

Brew Release
Brew MP 1.0.2
See Also
AEECallback AEECallback_SetTimer() AEECallback_SocketWait() AEECallback_Readable() AEECallback_Writeable() AEECallback_Connect()
Description


Some interfaces in BREW use "callback function/callback context" semantics instead of using AEECallback to specify both. Cancellation of the callback is usually accomplished by rescheduling the operation with a NULL callback function and the same callback context.
AEECallbacks are a generalizing structure for scheduling API operations that notify the client of the API via a procedure "callback." They encapsulate the most common methods for keeping track of where to call, with what, and abstract the notion of cancellation via a pfnCancel member. AEECallback is a *public* data structure, and so can be allocated by API clients instead of another dedicated API about which all users of AEECallbacks must then know.
This utility is designed to unify the two schools of thought
Usage
To use AEECallbackUtil, directly use any of the following functions: AEECallback_SetTimer() AEECallback_SocketWait() AEECallback_Readable() AEECallback_Writeable() AEECallback_Connect()