CHAILink SDK  Version 1.3
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
typedef CPBOOLEAN(* CLT_SETCB)(CLT_RECEIVE pfnReceive, CLT_STATUSCHANGECB pfnStatusChange, void *pTransportParam, void *pCBParam)

Transport Set Callbacks.

Part of the Transport Protocol to Transport Interface. This callback function pointer is provided by the Transport Protocol CLT_Interface::pfnSetCallbacks call. see CHAILink Client Transport for more details.

Parameters
[in]pfnReceiveThe data reception callback. See CLT_RECEIVE
[in]pfnStatusChangeThe status change callback. See CLT_STATUSCHANGECB
[in]pTransportParamA generic parameter from the Transport passed CHAI Liink Initialization. See CLT_Interface::pTransportParam
Remarks
a difference between the number bytes written and the requested number to write is considered as an error by the Transport Protocol.
Parameters
[in]pCBParamA generic parameter. The Transport MUST use this when calling pfnReceive or pfnStatusChange (parameter pCBParam)
See Also
CLT_STATUSCHANGECB and CLT_RECEIVE