Logo Search packages:      
Sourcecode: pan version File versions

void TaskArticle::on_nntp_line ( NNTP nntp,
const StringView line 
) [private, virtual]

Invoked for each line of an NNTP server's list responses, such as a list of headers for an XOVER command or a list of lines for an ARTICLE command.

Reimplemented from pan::NNTP::Listener.

Definition at line 217 of file task-article.cc.

References pan::StringView::begin(), pan::StringView::end(), and pan::StringView::len.

  // FIXME: ugh, this is called for _every line_...
  Needed * needed (0);
  foreach (needed_t, _needed, it) {
    if (it->nntp == nntp) {
      needed = &*it;
  assert (needed);

  Needed::buf_t& buf (needed->buf);
  buf.insert (buf.end(), line.begin(), line.end());
  buf.insert (buf.end(), '\n');
  increment_step (line.len);

Generated by  Doxygen 1.6.0   Back to index