src/share/classes/java/nio/channels/SocketChannel.java

Print this page

        

*** 335,344 **** --- 335,350 ---- * method is in progress then that operation will first block until this * invocation is complete. If a connection attempt is initiated but fails, * that is, if an invocation of this method throws a checked exception, * then the channel will be closed. </p> * + * <p> Once a connection is established, + * {@link java.nio.channels.Selector#select() Selector.select()} method + * should never select <tt>OP_CONNECT</tt> again. Please see + * {@link java.nio.channels.Selector#select() Selector.select()} for detail. + * </p> + * * @param remote * The remote address to which this channel is to be connected * * @return <tt>true</tt> if a connection was established, * <tt>false</tt> if this channel is in non-blocking mode