🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #15607

Re: newbie problem with threads

#15607
From: Steve Horsley
Date: Fri, 28 May 1999 00:00
15 lines
1064 bytes
Readline returns null when the end of the stream is reached. 
I guess that when reading from a socket, this only happens
when the connection is closed.

I guess that if you call reqadline when the connection is still
open but all data has been read, it will block, waiting for either 
more data to arrive, or for the connection to be closed.

Maybe that's your problem.

Note that you should call SocketReader.start(), not 
SocketReader.run() (I don't know which you are doing).

Steve.
Technical Details
Message-ID: <374E8BCF.D3D25E23@cwcom.co.uk>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <7htf2m$d0s21@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,57107e8311ab5720
X-Google-Attributes: gidf74b3,public
From: Steve Horsley <steve.horsley@cwcom.co.uk>
Subject: Re: newbie problem with threads
Date: 1999/05/28
Message-ID: <374E8BCF.D3D25E23@cwcom.co.uk>
X-Deja-AN: 483094109
Content-Transfer-Encoding: 7bit
References: <7htf2m$d0s21@forums.borland.com>
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
Organization: Cable & Wireless Communications
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language