monotone

monotone Mtn Source Tree

Root/nntp_tasks.hh

1#ifndef __NNTP_TASKS_HH__
2#define __NNTP_TASKS_HH__
3
4// copyright (C) 2002, 2003 graydon hoare <graydon@pobox.com>
5// all rights reserved.
6// licensed to the public under the terms of the GNU GPL (>= 2)
7// see the file COPYING for details
8
9#include <string>
10
11#include "packet.hh"
12#include "vocab.hh"
13
14// this file contains simple functions which build up NNTP state
15// machines and run them using the infrastructure in nntp_machine.{cc,hh}
16
17bool post_nntp_article(std::string const & group_name,
18 std::string const & from,
19 std::string const & subject,
20 std::string const & article,
21 std::iostream & stream);
22
23void fetch_nntp_articles(std::string const & group_name,
24 unsigned long & seq_number,
25 packet_consumer & consumer,
26 std::iostream & stream);
27
28#endif // __NNTP_TASKS_HH__

Archive Download this file

Branches

Tags

Quick Links:     www.monotone.ca    -     Downloads    -     Documentation    -     Wiki    -     Code Forge    -     Build Status