* Added xmlrpc calls for peer snubbed, banned and disconnect.

git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1180 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2010-10-08 08:10:08 +00:00
parent a0f3e95d20
commit 0e69677dbc
9 changed files with 92 additions and 18 deletions
-8
View File
@@ -120,14 +120,6 @@ CommandScheduler::call_item(value_type item) {
void
CommandScheduler::parse(const std::string& key, const std::string& bufAbsolute, const std::string& bufInterval, const std::string& command) {
// char key[21];
// char bufAbsolute[21];
// char bufInterval[21];
// char command[2048];
// if (std::sscanf(arg.c_str(), "%20[^,],%20[^,],%20[^,],%2047[^\n]", key, bufAbsolute, bufInterval, command) != 4)
// throw torrent::input_error("Invalid arguments to command.");
uint32_t absolute = parse_absolute(bufAbsolute.c_str());
uint32_t interval = parse_interval(bufInterval.c_str());