15
bool bSuggestReconnect, bRequestEnqueued;
17
inline bool HasBrokenStorage()
19
return (!m_pStorage || m_pStorage->GetStatus() >= FIST_ERROR);
32
tDlResult ProcessIncomming(acbuf & inBuf, mstring & sErrorRet);
34
tDlJob(dlcon *m, tFileItemPtr pFi, const mstring & sHost,
35
const mstring & sPath);
36
tDlJob(dlcon *m, tFileItemPtr pFi, acfg::tRepoData * pBackends,
37
const mstring & sPath);
41
void UnregDownloader(const mstring &sError);
42
void BlacklistBackend();
46
// needs connectedHost, blacklist, output buffer from the parent, proxy mode?
47
bool AppendRequest(mstring sForThisHostOnly, tSS &head, const tHttpUrl * pProxy);
49
inline bool HasStarted() { return m_DlState>STATE_GETHEADER; }
51
inline const mstring GetPeerName()
53
return m_pBackend ? m_pBackend->sHost : m_fileUri.sHost;
58
acfg::tRepoData::IHookHandler * GetConnStateObserver();
63
* Called by the state machine when receiveing the data, allows the subclass to reimplement it.
65
* @return: R_NEXTSTATE -> caller should switch state
66
* anything else: return that value
68
virtual tDlResult NewDataHandler(acbuf & inBuf, mstring &sErrorRet);
73
,STATE_GETDATA_CHUNKED
78
acfg::tRepoData * m_pHostiVec;
79
tFileItemPtr m_pStorage;
82
tHttpUrl m_fileUri, *m_pBackend;
84
bool m_bReconnectASAP;
92
tDlJob(const tDlJob&);
93
tDlJob & operator=(const tDlJob&);