Am Dienstag 06 Februar 2007 10:23 schrieb Andrea Carlevato:
> i absolutely need an answer to these:  i am writing a simple obex push
> client to push a file to a remote bt device, so create my obex connection,
> set imput buffer, event callback, write function ecc..
>
> Question are:
>
> 1) How can i see if my trasfer has been successfully completed ?

If OBEX_Request() does not return with -1.

> 2) Is there a way to follow the number of PAYLOD bytes trasferred ?
> Obex Write function receives and send  the  total payload + headers
> buffer, and i don't know the exact amount of these headers...

Not easy but possible. Use two obex_t, one with the transport of your choice 
otand the other as CUSTOM. You can use the file descriptor from the first 
with OBEX_GetFD().
Then operate on the second one.

HS

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Openobex-users mailing list
[email protected]
http://lists.sourceforge.net/lists/listinfo/openobex-users

Reply via email to