* New code for handling options/variables which used bencode and can

redirect get/set operations.

* Fixed(?) a bug in RequestList::downloading(...) that could cause a
segfault when pieces in the canceled list start downloading.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@622 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2006-01-13 03:26:46 +00:00
parent b25af84ee8
commit 4028ab2295
15 changed files with 438 additions and 138 deletions
+12
View File
@@ -276,6 +276,18 @@ Manager::listen_open() {
}
}
void
Manager::bind(const std::string& addr) {
if (torrent::listen_port() != 0) {
torrent::listen_close();
torrent::set_bind_address(addr);
listen_open();
} else {
torrent::set_bind_address(addr);
}
}
void
Manager::initialize_bencode(Download* d) {
torrent::Bencode& bencode = d->get_bencode();