mpetazzoni / ttorrent

BitTorrent Java library with tracker and download client
http://mpetazzoni.github.com/ttorrent/
Apache License 2.0
1.38k stars 502 forks source link

Add comments to Handshake.java #270

Closed RomanPilyushin closed 8 months ago

RomanPilyushin commented 8 months ago

Summary

This pull request adds comprehensive comments to the Handshake.java file. The aim is to improve code readability and maintainability by providing clear explanations of the BitTorrent handshake protocol implementation details.

Changes

Impact

These comments do not alter the execution of the existing code. Instead, they serve to guide new contributors and maintainers through the handshake process, fostering a deeper understanding of the codebase.

Justification

Good code documentation is crucial for collaborative projects. By describing what each part of the Handshake class does, we can facilitate smoother onboarding for new contributors, reduce the potential for misunderstandings, and make future code reviews more efficient.

I look forward to any feedback on these additions.