* Moved Bencode stream functions to object_stream.h and the Bencode

class to object.h.

* torrent::download_add(...) now takes an torrent::Object*.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@653 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2006-03-20 21:03:42 +00:00
parent 86a3f868df
commit 17d66c4a2f
12 changed files with 83 additions and 69 deletions
+2 -2
View File
@@ -40,7 +40,7 @@
#include <map>
#include <string>
#include <iosfwd>
#include <torrent/bencode.h>
#include <torrent/object.h>
namespace utils {
@@ -49,7 +49,7 @@ class Variable;
class VariableMap : public std::map<std::string, Variable*> {
public:
typedef std::map<std::string, Variable*> base_type;
typedef torrent::Bencode mapped_type;
typedef torrent::Object mapped_type;
static const int max_size_key = 128;
static const int max_size_opt = 1024;