forked from Diatrus/cydia-1
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathhttp.h
45 lines (31 loc) · 970 Bytes
/
http.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/// $Id: http.h,v 1.12 2002/04/18 05:09:38 jgg Exp $
// $Id: http.h,v 1.12 2002/04/18 05:09:38 jgg Exp $
/* ######################################################################
HTTP Acquire Method - This is the HTTP aquire method for APT.
##################################################################### */
/*}}}*/
#ifndef APT_HTTP_H
#define APT_HTTP_H
#define MAXLEN 360
#include <iostream>
using std::cout;
using std::endl;
class HttpMethod : public pkgAcqMethod
{
virtual bool Configuration(string Message);
// In the event of a fatal signal this file will be closed and timestamped.
static string FailFile;
static int FailFd;
static time_t FailTime;
static void SigTerm(int);
string NextURI;
public:
FileFd *File;
int Loop();
HttpMethod() : pkgAcqMethod("1.2",Pipeline | SendConfig)
{
File = 0;
};
};
#endif