if (! (endpoint instanceof InetSocketAddress)) throw new IllegalArgumentException ("Address type not supported");
  public void connect (SocketAddress endpoint)    throws IOException  {    impl.connect (endpoint, 0);  }