Serial Framework C++ Edition

◆ OnGetRequest()

__event void OnGetRequest ( void *  Sender,
const tstring &  aType,
wclObexServerOperationResult Result,
CwclStream *&  Stream 
)

The event fires when a remote connected client requests the OBEX object (sends the get request).

Parameters
SenderThe object that initiated the event.
aTypeThe requested OBEX object's MIME type.
ResultAn application must set this parameter to the operation result code. If an application can send the requested object the Result must be set to orSuccess.
StreamThe requested OBEX object's data stream. An application must provide the object's stream only in case if the Result set to orSuccess. In any other case the Stream must be set to NULL. The stream object passed to the event must be valid during all Get operation and can be released when the OnGetCompleted event received.
See also
wclObexServerOperationResult, CwclStream