InetSocketAddress tmp = (InetSocketAddress) address; connect(tmp.getAddress(), tmp.getPort());
SecurityManager sm = System.getSecurityManager(); if (sm != null) sm.checkConnect(address.getHostName(), port);  try { getImpl().connect(address, port); remoteAddress = address; remotePort = port; } catch (SocketException e) {  }
  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());	}