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:
Piece Index Request - a request for the next piece index the peer should attempt to acquire. Includes bitfield to identify which pieces are possible to acquire.
Peer Lost - an update for when a peer disconnects
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).
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).