Open preston opened 9 years ago
Composition vs inheritance? Can you achieve what you're looking for through composition instead?
Unfortunately not as-is, since a number of the more important methods are a bit large.
@mpetazzoni Would you accept a PR if I did some non-functional refactoring to break out a few methods and change some private declarations to protected?
Sure, send away
Done! PR submitted as #115.
I have a few minor modifications I need to make to HTTPAnnouncementRequest, HTTPTrackerClient etc for my specific project. Unfortunately, many of these classes make heavy use of private declarations that effectively make them final. That is, cleanly building customizations on top of torrent is project pretty much impossible. Please please pleeeeeease change these declarations to allow things to be easily subclass-able!
For example: