Quoting Claudio Takahasi <[EMAIL PROTECTED]>:
> Is it possible read a body fragment? I checked the API and the
> openobex code and it seems that it is not possible at the moment.
>
> Here is a dump that describes the iteraction between a BPP enabled
> client(BlueZ) and a printer(HP 7180):
>
> http://pastebin.com/m697ce56f
>
> I need read the body fragment because "SOAP GetEvent Response" is sent
> every x seconds by the printer.

You can do that by using the STREAM feature. The normal behaviour is  
to store everything in a buffer and return when the transmission  
finished.
To enable the STREAM feature, you need to call
   OBEX_ObjectReadStream(x,y,NULL)
at the time of event OBEX_EV_REQHINT and handle the  
OBEX_EV_STREAMAVAIL event, again using OBEX_ObjectReadStream but now  
with a pointer to a buffer pointer (not a pointer to a buffer).
obexpushd does that to stream directly to a pipe or a file.

HS



-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Openobex-users mailing list
[email protected]
http://lists.sourceforge.net/lists/listinfo/openobex-users

Reply via email to