TwclObexServerClientPutCompletedEvent Delegate
The OBEX server data processor OnPutCompleted
event
handler prototype.
type TwclObexServerClientPutCompletedEvent = procedure(Sender: TObject; const Error: Integer; const Stream: TStream; out Accept: Boolean) of object;
Parameters
- Sender
The object that initiated the event.
- Error
The 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 theAccept
parameter.- Stream
The received object's data stream.
- Accept
Set this parameter to
True
to accept the object. Set this parameter toFalse
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 insode 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 nil
or empty if received
object does not have body (data).