Re: Interruptible I/O for ObjectInputStream
Antti S. Brax wrote:
je@xxxxxxxxxxxxxx wrote in comp.lang.java.programmer:
Can anyone tell me how to set matters up so that an ObjectInputStream
(connected to a socket) can be made to time out if nothing is available
to be read within a specified timeout period?
Have you tried Socket.setSoTimeout(int)?
Ah, of course -- silly me, I was worrying about the ObjectInputStream and
had forgotten that I can time out the socket...
Many thanks.
----------------------------------------------------------------------
John English | mailto:je@xxxxxxxxxxxxxx
Senior Lecturer | http://www.it.bton.ac.uk/staff/je
School of Computing & MIS | "Those who don't know their history
University of Brighton | are condemned to relive it" (Santayana)
----------------------------------------------------------------------
.
Relevant Pages
- Re: Parry People Mover - performance?
... IIRC, when they demonstrated a PPM in Brighton some ... the power supply came from a 13A socket in a pub. ... (uk.railway) - Re: Interruptible I/O for ObjectInputStream
... > Can anyone tell me how to set matters up so that an ObjectInputStream ... > (connected to a socket) can be made to time out if nothing is available ... > to be read within a specified timeout period? ... Prev by Date: ... (comp.lang.java.programmer) |
|