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