* Allow loading torrents from https and ftp uri's.

* Added framework for commands on peers, but due to deficiencies in
the libtorrent API it won't be enabled yet.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@955 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2007-08-16 20:08:32 +00:00
parent 11976871ac
commit f117b9dd16
14 changed files with 482 additions and 12 deletions
+3 -1
View File
@@ -104,7 +104,9 @@ DownloadFactory::receive_load() {
if (m_stream)
throw torrent::internal_error("DownloadFactory::load() called on an object with m_stream != NULL");
if (std::strncmp(m_uri.c_str(), "http://", 7) == 0) {
if (std::strncmp(m_uri.c_str(), "http://", 7) == 0 ||
std::strncmp(m_uri.c_str(), "https://", 8) == 0 ||
std::strncmp(m_uri.c_str(), "ftp://", 6) == 0) {
// Http handling here.
m_stream = new std::stringstream;
HttpQueue::iterator itr = m_manager->http_queue()->insert(m_uri, m_stream);