Re: Interruptible I/O for ObjectInputStream



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)?

--
Antti S. Brax Rullalautailu pitää lapset poissa ladulta
http://www.iki.fi/asb/ http://www.cs.helsinki.fi/u/abrax/hlb/

[1385 messages expunged from folder "Spam"]
.



Relevant Pages

  • 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 ... You can then on the tick check if nothing has happened since the last ... Prev by Date: ...
    (comp.lang.java.programmer)
  • Re: [NET] Zeit von Timeserver auslesen
    ... wenn ich ein Socket über Port 13 zum Timeserver aufmache. ... Nun möchte ich mir aber nur die Uhrzeit anzeigen lassen und nicht den ... Ein ObjectInputStream kann nur dann ...
    (de.comp.lang.java)
  • Re: Flushing a GZIPOutputStream
    ... Suppose that I have a socket between two processes. ... I put an ObjectInputStream and an ObjectOutputStream. ... if I put a GZIPOutputStream between the ... but the GZIP stream is holding back the ...
    (comp.lang.java.programmer)
  • Flushing a GZIPOutputStream
    ... Suppose that I have a socket between two processes. ... ObjectOutputStream and the sockets out stream (and similar for the input ... streams) then the app hangs on me when I create the ObjectInputStream. ...
    (comp.lang.java.programmer)
  • Interruptible I/O for ObjectInputStream
    ... Folks, ... Can anyone tell me how to set matters up so that an ObjectInputStream ... (connected to a socket) ... School of Computing & MIS | "Those who don't know their history University of Brighton | are condemned to relive it" (Santayana) ...
    (comp.lang.java.programmer)