Java SocketChannel finishConnect(SocketChannel socketChannel)

Here you can find the source of finishConnect(SocketChannel socketChannel)

Description

finish Connect

License

Open Source License

Declaration

public static boolean finishConnect(SocketChannel socketChannel) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.nio.channels.SocketChannel;

public class Main {

    public static boolean finishConnect(SocketChannel socketChannel) {
        boolean result = false;
        try {/*from ww w . java 2  s .  c o  m*/
            if (socketChannel != null) {
                result = socketChannel.finishConnect();
            }
        } catch (Exception ex) {
            // ex.printStackTrace();
        }
        return result;
    }
}

Related

  1. createServerSocketChannel(int aPort, String aHostname)
  2. enhanceExceptionWithAddress(final SocketChannel channel, final IOException e)
  3. getConnectedSocketChannel(InetAddress host, int port, int timeout)
  4. getSocketAddress(SocketChannel socketChannel)
  5. getSocketDisplayString(SocketChannel channel)
  6. openSocketChannel(SocketAddress sa)