Article View: be.comp.programming
Article #1522Re: [Java] vraagje ivm Threads
From: Passero
Date: Tue, 15 Feb 2005 09:32
Date: Tue, 15 Feb 2005 09:32
20 lines
2177 bytes
2177 bytes
robert schreef:
> 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.
>
Ik bedoel dus ready h� ;)
Technical Details
Message-ID:
<lkjQd.12121$MO7.762951@phobos.telenet-ops.be>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news-in.ntli.net!newsrout1-win.ntli.net!newspeer1-win.ntli.net!news-out.ntli.net!newsrout1-gui.ntli.net!ntli.net!nntp.telenet.be!kwabbernoot.telenet-ops.be!phobos.telenet-ops.be.POSTED!not-for-mailReferences:
<w67Qd.11727$VT7.483449@phobos.telenet-ops.be> <slrnd125r8.1fl.robert@home.allyourbass.org> <wZ8Qd.11805$Zn6.848015@phobos.telenet-ops.be> <slrnd13dsi.1fl.robert@home.allyourbass.org>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 Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news-in.ntli.net!newsrout1-win.ntli.net!newspeer1-win.ntli.net!news-out.ntli.net!newsrout1-gui.ntli.net!ntli.net!nntp.telenet.be!kwabbernoot.telenet-ops.be!phobos.telenet-ops.be.POSTED!not-for-mail From: Passero <yanongena@pandora.be> User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: nl-NL, nl, en MIME-Version: 1.0 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> <slrnd13dsi.1fl.robert@home.allyourbass.org> In-Reply-To: <slrnd13dsi.1fl.robert@home.allyourbass.org> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 8bit Lines: 20 Message-ID: <lkjQd.12121$MO7.762951@phobos.telenet-ops.be> Date: Tue, 15 Feb 2005 09:32:01 GMT NNTP-Posting-Host: 84.194.223.119 X-Complaints-To: abuse@telenet.be X-Trace: phobos.telenet-ops.be 1108459921 84.194.223.119 (Tue, 15 Feb 2005 10:32:01 MET) NNTP-Posting-Date: Tue, 15 Feb 2005 10:32:01 MET Organization: Telenet Internet