*** empty log message ***

This commit is contained in:
Arvid Norberg 2004-03-17 12:55:26 +00:00
parent 06ad07cea7
commit bfd918e90c
4 changed files with 8 additions and 2 deletions

View File

@ -83,6 +83,9 @@ lib torrent
zlib//zlib
src/$(SOURCES)
$(LIBS)
/boost/thread//boost_thread
/boost/filesystem//boost_filesystem/<link>static
/boost/date_time//boost_date_time/<link>static
:
<threading>multi
<link>static

View File

@ -226,7 +226,8 @@ int main(int argc, char* argv[])
return 1;
}
boost::filesystem::path::default_name_check(boost::filesystem::no_check);
namespace fs = boost::filesystem;
fs::path::default_name_check(fs::no_check);
http_settings settings;
// settings.proxy_ip = "192.168.0.1";

View File

@ -1178,6 +1178,7 @@ namespace libtorrent
}
catch (file_error&)
{
// TODO: skip the whole file here!
// this means the slot wasn't allocated
assert(m_slot_to_piece[current_slot] == unallocated);
m_unallocated_slots.push_back(current_slot);

View File

@ -201,6 +201,7 @@ namespace libtorrent
hasher h;
h.update(&buf[0], (int)buf.size());
m_info_hash = h.final();
std::copy(m_info_hash.begin(), m_info_hash.end(), std::ostream_iterator<int>(std::cout));
// extract piece length
m_piece_length = (int)info["piece length"].integer();
@ -255,7 +256,7 @@ namespace libtorrent
boost::gregorian::date(
boost::date_time::not_a_date_time)))
{
return m_creation_date;
return boost::optional<boost::posix_time::ptime>(m_creation_date);
}
return boost::optional<boost::posix_time::ptime>();
}