[770] in java-interest

home help back first fref pref prev next nref lref last post

Non-blocking read on Socket?

daemon@ATHENA.MIT.EDU (Pat Niemeyer)
Wed Jul 19 18:59:40 1995

Date: Wed, 19 Jul 1995 11:55:10 -0500 (CDT)
From: Pat Niemeyer <pat@icon-stl.net>
To: java-interest@java.Eng.Sun.COM


 
I believe this question came up once before I don't recall seeing the answer.
(sorry if I just missed it)
 
Is there currently any way to do a non-blocking read on the FileInputStream
from Socket?  Should available() work for the input stream from a socket?  
(My code doesn't seem to).
 
Is it possible to do the read in another thread?
Won't the read just block all of the threads (or is this implemenation defined?)
  
 
Thanks,
Pat

-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post