CHAILink SDK  Version 1.3
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
typedef CPBOOLEAN(* CLT_WRITE)(CPBYTE *pbBuffer, CPUINT16 wBufferSize, CPUINT16 *pwWritten, void *pTransportParam)

Transport Write Function.

Part of the Transport Protocol to Transport Interface. This callback function pointer is provided during initialization in a CLT_Interface structure. see CHAILink Client Transport for more details.

Parameters
[in]pbBufferA pointer to a memory buffer containing data to send.
[in]wBufferSizeThe size in bytes of the memory buffer pointed to by pbBuffer.
[out]pwWrittenA pointer to the number of bytes written by the Transport.
[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.