* Added command scheduler, currently it only calls option handler.

git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@609 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2005-12-17 02:50:10 +00:00
parent ca5b5e05ec
commit e45f05ee98
17 changed files with 541 additions and 51 deletions
+10
View File
@@ -83,3 +83,13 @@ OptionHandler::process(const std::string& key, const std::string& arg) const {
itr->second->process(key, arg);
}
void
OptionHandler::process_command(const std::string& command) const {
std::string::size_type pos = command.find('=');
if (pos == std::string::npos)
throw torrent::input_error("Option handler could not find '=' in command.");
process(command.substr(0, pos), command.substr(pos + 1, std::string::npos));
}