Applying patch from HARMONY-6638:
1. In Linux, ServerSocketChannel should be acceptable if its server socket bind any address.
2. In Linux, SocketChannel should be connectable if it does not connect anything.
3. The Selector should also return if an error occurred.
4. If user change the interested operations of a selector, this
selector should treated as a new one (but with the same
SelectionKey). On the other hand, if the selector was return once and
no interested operation changed, it should not  be selected next time.

git-svn-id: https://svn.apache.org/repos/asf/harmony/enhanced/java/trunk@1002476 13f79535-47bb-0310-9956-ffa450edef68
5 files changed