socket and timeouts
Bryce McKinlay
bryce@waitaki.otago.ac.nz
Wed Jun 27 21:02:00 GMT 2001
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 ]
More information about the Java
mailing list