if (isClosed()) throw new SocketException("ServerSocket is closed");
  public int getSoTimeout () throws IOException  {    Object timeout = impl.getOption(SocketOptions.SO_TIMEOUT);    if (!(timeout instanceof Integer))      throw new IOException("Internal Error");    return ((Integer)timeout).intValue();  }