*** empty log message ***

This commit is contained in:
Magnus Jonsson 2004-01-14 16:22:49 +00:00
parent 0d96e09410
commit 3c884e72b4
4 changed files with 19 additions and 3 deletions

View File

@ -677,6 +677,7 @@ fields::
int load_balancing;
int download_queue_length;
int upload_queue_length;
int downloading_piece_index;
int downloading_block_index;
@ -739,9 +740,13 @@ this member says how much *extra* free upload this peer has got. If it is a nega
number it means that this was a peer from which we have got this amount of free
download.
``download_queue_length`` is the number of block-requests we have sent to this peer
``download_queue_length`` is the number of piece-requests we have sent to this peer
that hasn't been answered with a piece yet.
``upload_queue_length`` is the number of piece-requests we have received from this peer
that we haven't answered with a piece yet.
You can know which piece, and which part of that piece, that is currently being
downloaded from a specific peer by looking at the next four members.
``downloading_piece_index`` is the index of the piece that is currently being downloaded.

View File

@ -282,6 +282,11 @@ int main(int argc, char* argv[])
}
break;
}
if(c==' ')
{
events.pop_back();
}
}
std::auto_ptr<alert> a;
@ -411,14 +416,14 @@ int main(int argc, char* argv[])
out << "___________________________________\n";
*/
}
/*
for (std::deque<std::string>::iterator i = events.begin();
i != events.end();
++i)
{
out << *i << "\n";
}
*/
clear();
set_cursor(0, 0);
std::cout << out.str();

View File

@ -123,6 +123,9 @@ namespace libtorrent
peer_id id;
// the ip/port pair this peer is or was connected on
// TODO: if this peer was discovered by a remote connection,
// set port=0 to denote that port is unknown. Later if
// this ip comes from the tracker, fill in the right port.
address ip;
// the time when this peer was optimistically unchoked

View File

@ -367,6 +367,9 @@ namespace libtorrent
if(i->connection) continue;
if(i->banned) continue;
// TODO: Don't connect to peers that were discovered through
// remote connection, since we don't know the port.
assert(i->connected <= local_time);
boost::posix_time::ptime next_connect=i->connected + boost::posix_time::seconds(2*60);