Exemplo n.º 1
0
/*************************************************
* End the current message                        *
*************************************************/
void Filter::finish_msg()
   {
   end_msg();
   for(u32bit j = 0; j != total_ports(); ++j)
      if(next[j])
         next[j]->finish_msg();
   }
Exemplo n.º 2
0
/*
* End the current message
*/
void Filter::finish_msg()
   {
   end_msg();
   for(size_t j = 0; j != total_ports(); ++j)
      if(m_next[j])
         m_next[j]->finish_msg();
   }
Exemplo n.º 3
0
static int make_msg(void)
{
  const struct line* line;
  if ((line = buffer->read()) == 0)
    return 0;
  start_msg(line);
  while ((line = buffer->peek()) != 0) {
    if (!add_msg(line))
      break;
    buffer->read();
  }
  end_msg();
  return 1;
}
Exemplo n.º 4
0
/*
* Process a full message at once
*/
void Pipe::process_msg(DataSource& input)
   {
   start_msg();
   write(input);
   end_msg();
   }
Exemplo n.º 5
0
/*
* Process a full message at once
*/
void Pipe::process_msg(const byte input[], size_t length)
   {
   start_msg();
   write(input, length);
   end_msg();
   }