|
From: Alberto L. <al...@na...> - 2003-12-27 12:52:31
|
Thank you very much, Manu. Your code clarified things a lot. PeekNamedPipe() was what I was looking for, because at first I incorrectly thought that ReadFile would wait until all the data were sent to the pipe. Alberto El Vie 26 Dic 2003 16:46, Manu escribió: > Well, I can share a bit of my experience, this is how I proceed in > Visual-MinGW: > CPipe::_peek() calls PeekNamedPipe to know if we have > something to read, then CPipe::_read() fills the output buffer > (COutBuffer). > > You can freely use the code in /libtemp, it is currently GPL'ed, > but it will be moved into WinUI library soon, then it will be switched > to public domain. As the copyright holder, I give you acknowledgement > to use it in your app, in case it is helpfull. > http://cvs.sourceforge.net/viewcvs.py/visual-mingw/visual-mingw/src/libt >emp/ > > A Google search with "PeekNamedPipe", "ReadFile", etc... will give > you much more inputs. > > Enjoy! > > Manu. |