* Allow hex values in the 'tos' option.

* Moved more encryption related code to HandshakeEncryption.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@797 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2006-10-25 08:24:20 +00:00
parent 2781ce9698
commit 5dfc986658
5 changed files with 29 additions and 11 deletions
+11
View File
@@ -94,4 +94,15 @@ Variable::string_to_value_unit(const char* pos, value_type* value, int base, int
return last;
}
bool
Variable::string_to_value_unit_nothrow(const char* pos, value_type* value, int base, int unit) {
try {
string_to_value_unit(pos, value, base, unit);
return true;
} catch (const torrent::input_error& e) {
return false;
}
}
}