socket.connect (remote);
try { channel.connect((InetSocketAddress) remote, 0); } catch (ClassCastException cce) { throw new IOException("unsupported socked address type"); }
  public DatagramChannel connect (SocketAddress remote)    throws IOException  {    if (!isOpen())      throw new ClosedChannelException();        socket.connect (remote);    return this;  }