Пример #1
0
bool HttpParserImpl::setEOF()
{
    if(readEOF() && HTTP_READ_BODY == read_state_) {
        read_state_ = HTTP_READ_DONE;
        onComplete();
        return true;
    }
    return false;
}
Пример #2
0
bool		readUntil(char cC, char cInhibitor)
{
  int		nSave;

  readWs();
  nSave = getPos();
  while (readEOF() == false)
    {
      readChar(cInhibitor);
      if (readChar(cC) == true)
	return (true);
      incPos();
    }
  setPos(nSave);
  return (false);
}