Fixed bug that cause exception to be thrown when erasing a download.

Moved to using SocketAddress within src/net.

Enabled SocketManager.

Changed API to use uint32_t instead of int.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@485 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2005-07-04 16:14:13 +00:00
parent 0588e66eaf
commit fc8ca7df20
8 changed files with 43 additions and 12 deletions
+6 -1
View File
@@ -106,7 +106,7 @@ validate_hash_max_tries(int arg) {
bool
validate_fd(int arg) {
return arg >= 10 && arg < (1 << 16);
return arg >= 1 && arg < (1 << 16);
}
bool
@@ -177,6 +177,11 @@ apply_max_open_files(ui::Control* m, int arg) {
torrent::set_max_open_files(arg);
}
void
apply_max_open_sockets(ui::Control* m, int arg) {
torrent::set_max_open_sockets(arg);
}
void
apply_throttle_interval(ui::Control* m, int arg) {
torrent::set_throttle_interval(arg * 1000);