Changed api for listen ip and bind.

git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@454 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2005-06-07 01:19:18 +00:00
parent 3092a583ca
commit 2e7333792f
7 changed files with 131 additions and 15 deletions
+6 -6
View File
@@ -80,11 +80,6 @@ apply_download_directory(core::Download* d, const std::string& arg) {
(d->get_download().get_entry_size() > 1 ? d->get_download().get_name() : ""));
}
void
apply_download_ip(core::Download* d, const std::string& arg) {
d->get_download().set_ip(arg);
}
void
apply_global_download_rate(ui::Control* m, int arg) {
torrent::set(torrent::THROTTLE_READ_CONST_RATE, arg * 1024);
@@ -97,7 +92,12 @@ apply_global_upload_rate(ui::Control* m, int arg) {
void
apply_bind(ui::Control* m, const std::string& arg) {
m->get_core().set_listen_ip(arg);
torrent::set_bind(arg);
}
void
apply_ip(ui::Control* m, const std::string& arg) {
torrent::set_ip(arg);
}
// The arg string *must* have been checked with validate_port_range