FW: [jcifs] Problem reading from named pipe

Michael B Allen mballen at erols.com
Sat Feb 16 10:50:28 EST 2002


On Fri, 15 Feb 2002 15:21:47 -0800
Sean Ryan <sryan at clear-tec.com> wrote:

> Mike,
> 
> I added the available() method to the jcifs.smb.TransactNamedPipeInputStream
> class (see below). It seems to provide what I needed (gets used by ready()
> in the reader etc), but it seems to simple to be sufficient.
> 
> 
> public int available() throws IOException {
> 	int result = -1;
> 
> 	synchronized (lock) {
> 		result = used;
> 	}
> 
> 	return result;
> }

I don't think that's going to quite do it Sean. But I haven't really looked
at the problem.

Mike

PS: Please send your messages to the jcifs at samba.org mailing list.




More information about the jcifs mailing list