82
82
DownloadMain* main() { return &m_main; }
83
83
const DownloadMain* main() const { return &m_main; }
86
86
Object* bencode() { return m_bencode; }
87
87
void set_bencode(Object* o) { m_bencode = o; }
89
96
DownloadInfo* info() { return m_main.info(); }
91
98
int connection_type() const { return m_connectionType; }
92
99
void set_connection_type(int t) { m_connectionType = t; }
94
101
void receive_initial_hash();
96
104
void check_chunk_hash(ChunkHandle handle);
99
106
void receive_storage_error(const std::string& str);
100
107
void receive_tracker_success(AddressList* l);