Bluetooth Framework
CwclObexOppClient::Pull Method

The function reads the default object with given type from an OBEX Push server.

int Pull(tstring aType, CwclStream* Stream);
tstring aType 
The object's type.  
CwclStream* Stream 
The object's data stream.  

If the function succeed the return value is WCL_E_SUCCESS. Otherwise the method returns one of the WCL error codes.

This function can be used to pull (request) the default business card (vCard) from a target device. To do that the aType parameter must be "text/x-vCard" string.  

An application must pass a valid Stream object to the method and the stream object must be valid until OnGetComplete event fires. An application can destroy the stream object passed as the Stream parameter only after OnGetComplete event fired.  

During execution of the Pull operation the OnProgress event may (or may not) fire indicating the operation progress.  


Copyright (c) 2006-2019. All rights reserved.