Fix read when message size wasn't read in one step
add the ability to set upload/download rate-limits (in kB/sec.) on shared torrents
add javadoc documentation for upload/download rate-limit functionality
reduce rate limit code duplication by refactoring code present in both InboundThread and OutboundThread to a common ExchangeThread superclass.
add example of upload/download rate limiting to the client usage sample.
add comments documenting the drawbacks/potential improvements for the download/upload rate limiting algorithm
minor formatting/style modifications based on feedback from pull request #49
Merge pull request #49 from ptgoetz/rate-limits

Add ability to set upload/download rate limits.

Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
Fix a few styling issues from recent contributions

Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
Merge pull request #40 from pankdm/fix-incomplete-read

Fix read when message size wasn't read in one step

Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
fixes Issue #47
fixes turn/ttorrent#51
Merge pull request #50 from oxlade39/bug_fix

BDecode support for negative integers

Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
Merge pull request #53 from pwoodworth/issue-51

Fixes bug with selecting the announce client

A previous change introduced a bug in the selection
of the announce tier and client. Closes #51.

Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
-multi torrents
-remove dupe code
Merge remote-tracking branch 'upstream/master'
- adding announce classes for the different messages for torrent announce
- added spec for TrackerRequest
- starting work on an http announce client, leading to...
- un-encoding tracker responses
- added scala bencode parsing