host/stream_comm.c
/** Receive a message from the stream #main_input_stream.
  * \param fields Field description array.
  * \param dest_struct Where field data will be stored.
  * \return false on success, true if a parse error occurred.
  */
Receive a message from the stream #main_input_stream.
\param fields Field description array.
\param dest_struct Where field data will be stored.
\return false on success, true if a parse error occurred.
Receive a message from the stream #main_input_stream . \ param fields Field description array . \ param dest_struct Where field data will be stored . \ return false on success true if a parse error occurred .
static bool receiveMessage(const pb_field_t fields[], void *dest_struct)
{
	bool response;
	response = pb_decode(&main_input_stream, fields, dest_struct);
	if ((payload_length > 0) || !response)
	{
		readAndIgnoreInput();
		writeFailureString(STRINGSET_MISC, MISCSTR_INVALID_PACKET);
		return true;
	}
	else
		return false;
}
static bool receiveMessage ( const pb_field_t fields [ ] , void * dest_struct ) { bool response ; response = pb_decode ( & main_input_stream , fields , dest_struct ) ; if ( ( payload_length > 0 ) || ! response ) { readAndIgnoreInput ( ) ; writeFailureString ( STRINGSET_MISC , MISCSTR_INVALID_PACKET ) ; return true ; } else return false ; }
Receive a message from the stream #main_input_stream.
Receive a message from the stream #main_input_stream .
/* In order for the message to be considered valid, it must also occupy
	 	the entire payload of the packet. */