if (isClosed()) throw new SocketException("socket is closed");
  public void setSendBufferSize (int size) throws SocketException  {    if (size <= 0)      throw new IllegalArgumentException("SO_SNDBUF value must be > 0");        getImpl().setOption(SocketOptions.SO_SNDBUF, new Integer(size));  }