This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: socket and timeouts
- To: Nic Ferrier <nferrier at tapsellferrier dot co dot uk>
- Subject: Re: socket and timeouts
- From: Bryce McKinlay <bryce at waitaki dot otago dot ac dot nz>
- Date: Thu, 28 Jun 2001 16:05:50 +1200
- CC: java at gcc dot gnu dot org
- References: <sb3a22e5.096@tapsellferrier.co.uk>
Nic Ferrier wrote:
> - add CNI read and write methods to PlainSocketImpl.java
> (the current code uses the methods in FileDescriptor)
>
> - make those implementations use select() if PlainSocketImpl.timeout
> is non-zero
>
> - add a SocketInputStream / SocketOutputStream which talk to the
> PlainSocketImpl for reads and writes
>
> Does anybody have any damning critisism of this plan? Is it a bad
> plan? Is there another idea?
>
> If it's an ok idea I'll have a bash at it.
I think it is a good plan. There are also some other reasons why we
should have separate Socket IO from FileDescriptor, like implementing
shutdownInput/shutdownOutput, and implementing things correctly on native
win32 where a socket is not the same as a file descriptor.
regards
[ bryce ]