🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: be.comp.programming
Article #1521

Re: [Java] vraagje ivm Threads

#1521
From: robert
Date: Tue, 15 Feb 2005 08:49
20 lines
1947 bytes
Passero <yanongena@pandora.be>:
 > "robert" <{n.c.p}@allyourbass.org.invalid> schreef in bericht
 > news:slrnd125r8.1fl.robert@home.allyourbass.org...
 >>
 >> BufferedReader heeft een ready() method waarmee je kunt nagaan of er
 >> data in de buffer aanwezig is. Daarnaast zitten er in java.nio.channels
 >> een aantal mogelijkheden voor non-blocking I/O; voor socket-I/O kan je
 >> bijvoorbeeld eens kijken naar java.nio.channels.ServerSocketChannel
 >
 > ServerSocketChannel is voor servers maar ik schrijf een client.

Gelukkig bestaat er voor clients de SocketChannel class.

 > De methode read lukt ook niet want dan stopt hij met uitvoeren wanneer
 > er nog data moet komen.

Daar heb je dus ready() voor.

-- 
                                                                     robert
Technical Details
Message-ID: <slrnd13dsi.1fl.robert@home.allyourbass.org>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!zen.net.uk!dedekind.zen.co.uk!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!131.211.141.196.MISMATCH!humbolt.nl.linux.org!news.nl.linux.org!transit.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
References: <w67Qd.11727$VT7.483449@phobos.telenet-ops.be> <slrnd125r8.1fl.robert@home.allyourbass.org> <wZ8Qd.11805$Zn6.848015@phobos.telenet-ops.be>

Show Full Headers
Complete Article Headers
X-Google-Thread: fcea4,9bf68d08c30a77d7
X-Google-Thread: 107324,9bf68d08c30a77d7
X-Google-Attributes: gidfcea4,gid107324,public
X-Google-Language: DUTCH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!zen.net.uk!dedekind.zen.co.uk!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!131.211.141.196.MISMATCH!humbolt.nl.linux.org!news.nl.linux.org!transit.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Newsgroups: be.comp.programming,nl.comp.programmeren
Subject: Re: [Java] vraagje ivm Threads
References: <w67Qd.11727$VT7.483449@phobos.telenet-ops.be> <slrnd125r8.1fl.robert@home.allyourbass.org> <wZ8Qd.11805$Zn6.848015@phobos.telenet-ops.be>
Organization: All Your Bass Are Belong To Us
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-15; format=flowed
From: {n.c.p}@allyourbass.org.invalid (robert)
Message-ID: <slrnd13dsi.1fl.robert@home.allyourbass.org>
User-Agent: slrn/0.9.8.1 (Darwin)
Date: 15 Feb 2005 08:49:22 GMT
Lines: 20
NNTP-Posting-Host: 62.216.26.162
X-Trace: 1108457362 news.xs4all.nl 28984 [::ffff:62.216.26.162]:64697
X-Complaints-To: abuse@xs4all.nl