🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #508

streams in applet (another question)

#508
From: Alex Tyutyunik
Date: Mon, 14 Jul 2003 13:03
30 lines
1763 bytes
Good day, some trouble here...

  private InputStream in;
  private Socket sock;

      sock = new Socket(_QComputer.get_IPAddress(),26000);
      in = sock.getInputStream();

Then in another thread i get data from socket:

      while (in.available() != 0) {
        quote += (char) in.read();
      }

First run - OK. When i pressed F5(refresh) in IE, i saw in console:

java.io.IOException: Stream closed.

 at java.net.PlainSocketImpl.available(Unknown Source)

 at java.net.SocketInputStream.available(Unknown Source)

 at applet2.Applet2.get_data(Applet2.java:319)

 at applet2.Applet2.run(Applet2.java:79)

 at java.lang.Thread.run(Unknown Source)

What i have to do?
Why this my example do not work in IE? In AV - all OK
Technical Details
Message-ID: <3f12a9ee@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.icl.net!newsfeed.fjserv.net!kibo.news.demon.net!demon!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,fcb4df792b3dbafa,start
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2003-07-14 06:11:10 PST
From: "Alex Tyutyunik" <alt7@dise.donbass.com>
Newsgroups: borland.public.jbuilder.java.api
Subject: streams in applet (another question)
Date: Mon, 14 Jul 2003 16:03:07 +0300
Lines: 36
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4522.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
NNTP-Posting-Host: 195.184.199.199
Message-ID: <3f12a9ee@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1058187758 195.184.199.199 (14 Jul 2003 06:02:38 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.icl.net!newsfeed.fjserv.net!kibo.news.demon.net!demon!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail