maximwebb / torrensic

Lightweight torrent client written in Rust
1 stars 0 forks source link

Communication between peer manager and peers #12

Closed maximwebb closed 11 months ago

maximwebb commented 1 year ago

This feature will add the ability for peers to send updates to the peer manager. The PM will have a multiple receive channel, which deliver various types of update from the peers (one channel per message type, shared across peers). The message types will be:

When a piece is successfully acquired, the peer should update the bitfield mutex and request a new piece (i.e. there is no dedicated message for this).