public void testNio() throws Exception {
		SocketChannel channel = SocketChannel.open();
		channel.configureBlocking(false);
		
		Socket s = channel.socket();
		s.bind(loopBackAddr);
		
		InetAddress host = InetAddress.getByName("shell.sourceforge.net");
		InetSocketAddress addr = new InetSocketAddress(host, 22);		
		channel.connect(addr);
		
		for(int i = 0; i < 10; i++) {
			boolean b = channel.finishConnect();
			log.fine("finishConnect["+i+"]="+b);
			Thread.sleep(5000);
		}
	}