🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: newbie problem with threads

#15474
From: C. Callaway
Date: Fri, 28 May 1999 00:00
20 lines
1275 bytes
Thank you all for your responses, they solved the problem quite nicely.


Steve Horsley <steve.horsley@cwcom.co.uk> wrote in message
news:374E8BCF.D3D25E23@cwcom.co.uk...
>
> 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: <7in5d4$7gs12@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <7htf2m$d0s21@forums.borland.com> <374E8BCF.D3D25E23@cwcom.co.uk>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,57107e8311ab5720
X-Google-Attributes: gidf74b3,public
From: "C. Callaway" <cqcallaw@iname.com>
Subject: Re: newbie problem with threads
Date: 1999/05/28
Message-ID: <7in5d4$7gs12@forums.borland.com>
X-Deja-AN: 483277271
References: <7htf2m$d0s21@forums.borland.com> <374E8BCF.D3D25E23@cwcom.co.uk>
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211
Organization: Another Netscape Collabra Server User
X-MSMail-Priority: Normal
Newsgroups: borland.public.jbuilder.java.language