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

Developer

API Reference

IQOSSESSION_ADDRETRYCB()

Brew Release
Brew MP 1.0.2
See Also
IQoSSession_Open()
Description
This function should be used by clients in order to be notified when the IQoSSession_Open() operation should be retried.
In the case where IQoSSession_Open() returns AEE_NET_WOULDBLOCK, IQoSSession_Open() should be called again later to obtain the final result (error or success). For notification of when to call IQoSSession_Open() again, the client should register a callback through IQoSSession_AddRetryCB(). Note that when the client's callback is resumed, it is not guaranteed that a subsequent call to IQoSSession_Open() will complete, so the client must be prepared to receive AEE_NET_WOULDBLOCK again.
Params
po
[]:
the interface pointer
pcbRetry
[]:
the client's callback.
Interface
Prototype
  •    int IQoSSession_AddRetryCB(IQoSSession *po, AEECallback* pcbRetry);
    
Return
  • AEE_SUCCESS: client's callback was stored successfully.
    AEE_EBADSTATE: QoSSession state is not suitable for this operation.
    AEE_EBADPARM: pcbRetry is NULL.
Side Effect
  • None.
Comments
None.