monotone

monotone Mtn Source Tree

Root/http_tasks.hh

1#ifndef __HTTP_TASKS_HH__
2#define __HTTP_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 talk through HTTP to
15// a depot.
16
17bool post_http_packets(std::string const & group_name,
18 std::string const & user,
19 std::string const & signature,
20 std::string const & packets,
21 std::string const & http_host,
22 std::string const & http_path,
23 unsigned long port,
24 bool is_proxy,
25 std::iostream & stream);
26
27void fetch_http_packets(std::string const & group_name,
28unsigned long & maj_number,
29unsigned long & min_number,
30packet_consumer & consumer,
31std::string const & http_host,
32std::string const & http_path,
33unsigned long port,
34bool is_proxy,
35std::iostream & stream);
36
37#endif // __HTTP_TASKS_HH__

Archive Download this file

Branches

Tags

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