This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: socket and timeouts


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 ]



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]