[jcifs] Problem reading from named pipe
Michael B Allen
mballen at erols.com
Thu Feb 14 18:49:31 EST 2002
On Wed, 13 Feb 2002 12:54:11 -0800
Sean Ryan <sryan at clear-tec.com> wrote:
> /* Create named pipe in BLOCKING mode */
> hPipe = CreateFile (PipeName,
> GENERIC_WRITE |
> FILE_SHARE_READ |
> /* Here we must set the return pipe state. */
> HandleState = PIPE_READMODE_MESSAGE | PIPE_WAIT;
> if (SetNamedPipeHandleState(hPipe,
Yeah, see this, it's setting it to trasaction style. You need to use
PIPE_TYPE_CALL I think.
> I'm not sure if there is anything in the above code that would point out
> what is happening to cause the exception. I don't know if this helps, but
> I've noticed that the Reader "ready()" method never returns true on the
> reader, and that the InputStream available() method always returns 0 - even
> though I can read data from the reader.
available() is ignored but it probably should not be.
More information about the jcifs