src/parse.c
bool parse_entireContentReceived(char* strPtr, size_t bytesRcvd)
{
   int content_length = 0;
   bool retval = false;

   content_length = parse_getContentLength(strPtr);
   if (content_length >= 0)
   {
      char* tempPtr = strstr(strPtr, HTTP_HEADER_TERMINATION) + 4;
      size_t exp_bytes = (tempPtr - strPtr) + content_length;

      if (exp_bytes == bytesRcvd)
      {
         retval = true;
      }
   }

   return retval;
}
//!
//! Determine if the entire specified content length has been received.
//!
//! @param[in] strPtr  Pointer to http string
//! @param[in] bytesRcvd  Total number of received bytes
//! @return  true if entire content length has been received, otherwise false
//!

Determine if the entire specified content length has been received.
Determine if the entire specified content length has been received .
bool parse_entireContentReceived(char* strPtr, size_t bytesRcvd)
{
   int content_length = 0;
   bool retval = false;
   content_length = parse_getContentLength(strPtr);
   if (content_length >= 0)
   {
      char* tempPtr = strstr(strPtr, HTTP_HEADER_TERMINATION) + 4;
      size_t exp_bytes = (tempPtr - strPtr) + content_length;
      if (exp_bytes == bytesRcvd)
      {
         retval = true;
      }
   }
   return retval;
}
bool parse_entireContentReceived ( char * strPtr , size_t bytesRcvd ) { int content_length = 0 ; bool retval = false ; content_length = parse_getContentLength ( strPtr ) ; if ( content_length >= 0 ) { char * tempPtr = strstr ( strPtr , HTTP_HEADER_TERMINATION ) + 4 ; size_t exp_bytes = ( tempPtr - strPtr ) + content_length ; if ( exp_bytes == bytesRcvd ) { retval = true ; } } return retval ; }
Determine if the entire specified content length has been received.
Determine if the entire specified content length has been received .