[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Re: Questions on the new KIO::FileJob API
From: Vlad <vladc6 () yahoo ! com>
Date: 2008-07-27 7:38:13
Message-ID: 654732.23779.qm () web54405 ! mail ! yahoo ! com
[Download RAW message or body]
Hi,
--- On Wed, 5/14/08, Allan Sandfeld Jensen <kde@carewolf.com> wrote:
> > > 2) - Reading Files: From reading the code in
> kio_file i'm not sure
> > > whether data() is supposed to emit all the
> requested data in a
> > > single
> > > callback
> >
> > Yes, one data() should emit all the requested data,
> unless the slave
> > reaches EOF, in which case it returns all the data up
> to the EOF.
> >
> No. A read can result in any number data() emits. For files
> it will usually be
> only one, but for streams it can be multiple.
Does FileJob::write() work the same way? In other words, do we have to check whether \
bytes_written == the number of bytes sent, and if not, then attempt again to write \
what is left over?
Thanks,
Vlad
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic