if (isClosed()) throw new SocketException("socket is closed");
  public void setTrafficClass (int tc) throws SocketException  {    if (tc < 0 || tc > 255)      throw new IllegalArgumentException();    getImpl().setOption (SocketOptions.IP_TOS, new Integer (tc));  }