/************************************************* * 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(); }
/* * 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(); }
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; }
/* * Process a full message at once */ void Pipe::process_msg(DataSource& input) { start_msg(); write(input); end_msg(); }
/* * Process a full message at once */ void Pipe::process_msg(const byte input[], size_t length) { start_msg(); write(input, length); end_msg(); }