Serial Framework C++ Edition

◆ OnPutCompleted()

__event void OnPutCompleted ( void *  Sender,
const int  Error,
CwclStream *const  Stream,
bool &  Accept 
)

The event fires when all object has been received.

Parameters
SenderThe object that initiated the event.
ErrorThe operation completion reason code. If operation completed with success the Reason is WCL_E_SUCCESS. An application may accept or reject all the object by setting the Accept parameter.
StreamThe received object's data stream.
AcceptSet this parameter to True to accept the object. Set this parameter to False to reject the object. In case if object rejected the OBEX Forbidden error will be send.

The Stream parameter contains the received object's data. This parameter is valid only inside the event handler and must be saved or copied by an application if an application needs to use it later. The Stream parameter can be NULL or empty if received object does not have body (data).