mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-10-08 07:09:21 +00:00
Half done the http queue.
git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@264 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
@@ -23,20 +23,8 @@ class CurlGet : public torrent::Http {
|
||||
void start();
|
||||
void close();
|
||||
|
||||
void set_url(const std::string& url);
|
||||
const std::string& get_url() const;
|
||||
|
||||
void set_out(std::ostream* out);
|
||||
std::ostream* get_out();
|
||||
|
||||
void set_user_agent(const std::string& s);
|
||||
const std::string& get_user_agent();
|
||||
|
||||
bool is_busy() { return m_handle; }
|
||||
|
||||
SignalDone& signal_done();
|
||||
SignalFailed& signal_failed();
|
||||
|
||||
protected:
|
||||
CURL* handle() { return m_handle; }
|
||||
|
||||
@@ -48,15 +36,9 @@ class CurlGet : public torrent::Http {
|
||||
|
||||
friend size_t curl_get_receive_write(void* data, size_t size, size_t nmemb, void* handle);
|
||||
|
||||
std::string m_url;
|
||||
std::string m_useragent;
|
||||
std::ostream* m_out;
|
||||
CURL* m_handle;
|
||||
|
||||
CurlStack* m_stack;
|
||||
|
||||
sigc::signal0<void> m_done;
|
||||
sigc::signal1<void, std::string> m_failed;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user