public void connect(SocketAddress endpoint) throws IOException { if (closed) throw new SocketException("Socket is closed");  if (!(endpoint instanceof InetSocketAddress)) throw new IllegalArgumentException("Address type not supported");  if (ch != null && !ch.isBlocking()) throw new IllegalBlockingModeException();  impl.connect(endpoint, 0);
public void connect(SocketAddress endpoint) throws IOException { connect(endpoint, 0);
	public void connect(SocketAddress endpoint) throws IOException {		if (closed)			throw new SocketException("Socket is closed");		if (!(endpoint instanceof InetSocketAddress))			throw new IllegalArgumentException("Address type not supported");		if (ch != null && !ch.isBlocking())			throw new IllegalBlockingModeException();		impl.connect(endpoint, 0);	}