if (isClosed()) throw new SocketException("socket is closed");
  public void setTTL(byte ttl) throws IOException  {    // Use setTTL here rather than setTimeToLive in case we're using an impl    // other than the default PlainDatagramSocketImpl and it doesn't have    // setTimeToLive yet.    impl.setTTL(ttl);  }