if (isClosed()) throw new SocketException("socket is closed");
  public int getSoLinger() throws SocketException  {    Object linger = getImpl().getOption(SocketOptions.SO_LINGER);    if (linger instanceof Integer)      return(((Integer)linger).intValue());    else      return -1;  }