Re: How to send stream via obexd without ending request

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Lukasz,

On Tue, Sep 28, 2010 at 1:14 PM, Lukasz Pawlik
<lukasz.pawlik@xxxxxxxxxxx> wrote:
> Hi,
>
> I want to stream data immediately after they appear and wait for next part.
> So far I didn't manage to find a way how to do this properly. Returning
> error EAGAIN from my read function leads to canceling request and this is
> something I don't want to do. The other way I was able to find is returning
> value > 0 from read function until last part of data appear. Obexd will
> stream data when buffer exceed allocated memory chunk and return to read
> more data. This is no solution because it forces obexd to send empty
> streams. Does anyone knows how to solve this problem ?

You should probably handle -EAGAIN to handle_async_io in src/obex.c,
so that it doesn't cancel the request for this specific error, also it
should return TRUE so that the callback doesn't get automatically
unregistered.

-- 
Luiz Augusto von Dentz
Computer Engineer
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux