if (isClosed()) throw new SocketException("socket is closed");
if (address == null) throw new IllegalArgumentException("Connect address may not be null");
  public void connect(SocketAddress address) throws SocketException  {    if (isClosed())      throw new SocketException("socket is closed");    if (! (address instanceof InetSocketAddress))      throw new IllegalArgumentException("unsupported address type");    InetSocketAddress tmp = (InetSocketAddress) address;		connect(tmp.getAddress(), tmp.getPort());	}