kprocess/transferjob problem

Alexander Neundorf neundorf at kde.org
Sun Jul 6 01:15:14 BST 2003


Hi,

I have the following problem: I get data froma transferjob and want to feed it 
into stdin of a kprocess. I tried to simply call process->writeStdin() 
whenever I get the data() signal from the job, but the writing doesn't always 
succeed, I guess the data comes faster than the kprocess consumes it.
The simplest solution would be if the writing would be blocking.

Is there another way ? Do I have to copy each qbytearray which I receive from 
the data() signal and put it in a queue and process the qbytearrays from this 
queue whenever I get the wroteStdin() signal from the kprocess ?

Bye
Alex
-- 
Work: alexander.neundorf at jenoptik.com - http://www.jenoptik-los.de
Home: neundorf at kde.org                - http://www.kde.org
      alex at neundorf.net               - http://www.neundorf.net





More information about the kde-core-devel mailing list