maximwebb / torrensic

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

Decouple peer wire message parsing and message handling #6

Closed maximwebb closed 1 year ago

maximwebb commented 1 year ago

Currently, the message parsing and handling in the PWP is intertwined. This should be refactored into a Connection class, which should handle reading from the TCP stream and parsing messages.