* gnu/java/nio/DatagramChannelImpl: (fd): New member variable to store file descriptor of socket. * gnu/java/nio/SelectionKeyImpl.java: (ops): Removed. (readyOps): New member variable. (interestOps): New member variable. (readyOps): Implemented. (readyOps): New method to set member variable readyOps. (interestOps): Replaced ops by interestOps. * gnu/java/nio/SelectorImpl.java: (SelectorImpl): Initialize key sets. (select): Call select with -1 instead of Long.MAX_VALUE). (java_do_select): Make it a native method. (getFDsAsArray): New helper method. (select): Remove canceled keys, give only interested file discriptors to java_do_select, set ready ops. (add): No need to initialize keys set here. (add_selected): No need to initialize selected set here. (deregisterCanceledKeys): New helper method. (register): Set interest ops, set attachments, added handling of datagram channels. * gnu/java/nio/ServerSocketChannelImpl: (SocketAccept): Renamed from NioSocketAccept. (implConfigureBlocking): Implemented. (accept): Use SocketAccept instead of NioSocketAccept. * gnu/java/nio/SocketChannelImpl: Reactivate native methods. From-SVN: r59632
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| charset | Loading commit data... | |
| ByteBufferImpl.java | Loading commit data... | |
| CharBufferImpl.java | Loading commit data... | |
| DatagramChannelImpl.java | Loading commit data... | |
| DoubleBufferImpl.java | Loading commit data... | |
| FileChannelImpl.java | Loading commit data... | |
| FloatBufferImpl.java | Loading commit data... | |
| IntBufferImpl.java | Loading commit data... | |
| LongBufferImpl.java | Loading commit data... | |
| PipeImpl.java | Loading commit data... | |
| SelectionKeyImpl.java | Loading commit data... | |
| SelectorImpl.java | Loading commit data... | |
| SelectorProviderImpl.java | Loading commit data... | |
| ServerSocketChannelImpl.java | Loading commit data... | |
| ShortBufferImpl.java | Loading commit data... | |
| SocketChannelImpl.java | Loading commit data... | |
| natByteBufferImpl.cc | Loading commit data... | |
| natCharBufferImpl.cc | Loading commit data... | |
| natDoubleBufferImpl.cc | Loading commit data... | |
| natFloatBufferImpl.cc | Loading commit data... | |
| natIntBufferImpl.cc | Loading commit data... | |
| natLongBufferImpl.cc | Loading commit data... | |
| natSelectorImpl.cc | Loading commit data... | |
| natServerSocketChannelImpl.cc | Loading commit data... | |
| natShortBufferImpl.cc | Loading commit data... | |
| natSocketChannelImpl.cc | Loading commit data... |