Create a peer manager, and a counter manager.
commitfd5e1ee39d80dbf96172759223806eb63833f644
authorJesper Louis Andersen <jesper.louis.andersen@gmail.com>
Tue, 29 Jul 2008 23:06:28 +0000 (30 01:06 +0200)
committerJesper Louis Andersen <jesper.louis.andersen@gmail.com>
Tue, 29 Jul 2008 23:06:28 +0000 (30 01:06 +0200)
tree8bd50d5d1da2324c4fc985f25c8cef11db7d34f8
parentaaf0e3dd6d01a1b1bebe880e6fdc9d9920f54604
Create a peer manager, and a counter manager.

The peer manager is responsible for:

; keeping track of peer lists
; keep track of bad peers
; starting new peers

The counter manager replaces etorrent_sequence.

The choker got simplified, and the acceptors can now directly start
incoming peers. All in all, this robustifies the application by quite
a bit.
13 files changed:
lib/etorrent-1.0/include/etorrent_mnesia_table.hrl
lib/etorrent-1.0/src/etorrent_acceptor.erl
lib/etorrent-1.0/src/etorrent_acceptor_sup.erl
lib/etorrent-1.0/src/etorrent_choker.erl
lib/etorrent-1.0/src/etorrent_counters.erl [copied from lib/etorrent-1.0/src/etorrent_bad_peer_mgr.erl with 67% similarity]
lib/etorrent-1.0/src/etorrent_mnesia_init.erl
lib/etorrent-1.0/src/etorrent_path_map.erl
lib/etorrent-1.0/src/etorrent_peer_mgr.erl [moved from lib/etorrent-1.0/src/etorrent_bad_peer_mgr.erl with 66% similarity]
lib/etorrent-1.0/src/etorrent_sequence.erl [deleted file]
lib/etorrent-1.0/src/etorrent_sup.erl
lib/etorrent-1.0/src/etorrent_t_manager.erl
lib/etorrent-1.0/src/etorrent_t_peer_recv.erl
lib/etorrent-1.0/src/etorrent_tracker_communication.erl