~ubuntu-branches/debian/wheezy/apt-cacher-ng/wheezy

« back to all changes in this revision

Viewing changes to include/dlcon.h

  • Committer: Bazaar Package Importer
  • Author(s): Eduard Bloch
  • Date: 2011-03-28 00:49:59 UTC
  • mfrom: (30.1.10 sid)
  • Revision ID: james.westby@ubuntu.com-20110328004959-qpk7249q698djveb
Tags: 0.6.1-1
* New upstream release
* Improved BindInterfaces description (closes: #545337)

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
//#include <netinet/in.h>
11
11
//#include <netdb.h>
12
12
 
13
 
#include "tcpconnect.h"
 
13
//#include "tcpconnect.h"
14
14
 
15
15
#include "lockable.h"
16
16
#include "fileitem.h"
20
20
class tDlJob;
21
21
 
22
22
 
23
 
class dlcon : public lockable, tcpconnect
 
23
class dlcon : public lockable
24
24
25
25
    public:
26
26
        dlcon(bool bManualExecution, mstring *xff=NULL);
27
27
        ~dlcon();
28
 
                
 
28
 
29
29
        void WorkLoop();
30
30
        
31
31
        void SignalStop();
38
38
        mstring m_sXForwardedFor;
39
39
        
40
40
    private:
 
41
 
 
42
        //not to be copied
 
43
        dlcon & operator=(const dlcon&);
 
44
        dlcon(const dlcon&);
41
45
        
42
46
        friend class tDlJob;
43
47
        
44
 
 
45
48
        MYSTD::list<tDlJob*> m_qToReceive;
46
49
        int m_wakepipe[2];
47
 
        
48
 
        //mstring m_sConnectedHost; // used to remember to which host we are connected
49
50
 
50
51
        acbuf m_InBuf;
51
52
        
52
53
        // flags and local copies for input parsing
53
54
        /// remember being attached to an fitem
54
55
 
55
 
        bool m_bSingleRun;
56
 
            
 
56
        bool m_bStopWhenIdle;
 
57
 
 
58
        /// shared blacklist for bad hosts
57
59
        MYSTD::set<mstring> m_MirrorHostBlacklist;
58
60
 
59
 
        //not to be copied
60
 
        dlcon & operator=(const dlcon&);
61
 
        dlcon(const dlcon&);
 
61
        //! will establish the connection, keep its object pointer
 
62
        //! in m_pConnection and return its file descriptor (negative on failure)
 
63
//      int Connect(cmstring & sHostname, mstring &sErrOut);
 
64
 
62
65
};
63
66
 
64
67
typedef MYSTD::list<tDlJob*>::iterator dljIter;