*** empty log message ***

This commit is contained in:
Arvid Norberg 2004-02-01 00:50:18 +00:00
parent 54c1e58608
commit 5a15c8ebfb
2 changed files with 7 additions and 0 deletions

View File

@ -316,6 +316,11 @@ int main(int argc, char* argv[])
a = ses.pop_alert();
while (a.get())
{
torrent_finished_alert* p = dynamic_cast<torrent_finished_alert*>(a.get());
if (p)
{
ses.set_upload_rate_limit(30 * 1024);
}
if (events.size() >= 10) events.pop_front();
events.push_back(a->msg());
a = ses.pop_alert();

View File

@ -161,6 +161,8 @@ namespace libtorrent
// to finish all pieces currently in the pipeline, and then
// abort the torrent.
// TODO: add a max upload rate per torrent too.
// manually connect a peer
void connect_peer(const address& adr) const;