if (isClosed()) throw new SocketException("socket is closed");
  public boolean getTcpNoDelay() throws SocketException  {    Object on = getImpl().getOption(SocketOptions.TCP_NODELAY);      if (on instanceof Boolean)      return(((Boolean)on).booleanValue());    else      throw new SocketException("Internal Error");  }