*** empty log message ***
This commit is contained in:
@@ -188,7 +188,7 @@ namespace libtorrent
|
||||
return *reinterpret_cast<const dictionary_type*>(data);
|
||||
}
|
||||
|
||||
void print(std::ostream& os, int indent) const;
|
||||
void print(std::ostream& os, int indent = 0) const;
|
||||
|
||||
private:
|
||||
|
||||
|
@@ -152,7 +152,7 @@ namespace libtorrent
|
||||
#if defined(TORRENT_VERBOSE_LOGGING)
|
||||
boost::shared_ptr<logger> create_log(std::string name)
|
||||
{
|
||||
name += ".log";
|
||||
name = "libtorrent_log_" + name + ".log";
|
||||
// current options are file_logger and cout_logger
|
||||
return boost::shared_ptr<logger>(new file_logger(name.c_str()));
|
||||
}
|
||||
|
@@ -86,7 +86,7 @@ namespace libtorrent
|
||||
enum open_mode { in, out };
|
||||
|
||||
// opens a piece with the given index from storage s
|
||||
void open(storage* s, int index, open_mode m);
|
||||
void open(storage* s, int index, open_mode m, int seek_offset = 0);
|
||||
void close()
|
||||
{
|
||||
//std::cout << std::clock() << "close " << m_piece_index << "\n";
|
||||
|
@@ -109,6 +109,7 @@ namespace libtorrent
|
||||
entry::integer_type piece_length() const { return m_piece_length; }
|
||||
std::size_t num_pieces() const { return m_piece_hash.size(); }
|
||||
const sha1_hash& info_hash() const { return m_info_hash; }
|
||||
const std::string& name() const { return m_name; }
|
||||
void print(std::ostream& os) const;
|
||||
|
||||
entry::integer_type piece_size(unsigned int index) const
|
||||
@@ -149,6 +150,8 @@ namespace libtorrent
|
||||
|
||||
// the hash that identifies this torrent
|
||||
sha1_hash m_info_hash;
|
||||
|
||||
std::string m_name;
|
||||
};
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user