*** empty log message ***

This commit is contained in:
Arvid Norberg
2004-04-18 12:28:02 +00:00
parent 1b0c908d38
commit adbfc0378c
9 changed files with 132 additions and 43 deletions

View File

@@ -637,10 +637,15 @@ namespace libtorrent { namespace detail
// tick() will set the used upload quota
i->second->second_tick();
// accumulate the statistics from all torrents
m_stat += i->second->statistics();
++i;
}
purge_connections();
m_stat.second_tick();
// distribute the maximum upload rate among the torrents
allocate_resources(m_upload_rate == -1
@@ -905,6 +910,13 @@ namespace libtorrent
return m_impl.m_listen_interface.port;
}
session_status session::status() const
{
session_status s;
// TODO: implement
return s;
}
bool session::is_listening() const
{
boost::mutex::scoped_lock l(m_impl.m_mutex);