Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/alanmcgovern/monotorrent

The official repository for MonoTorrent, a bittorrent library for .NET
https://github.com/alanmcgovern/monotorrent

We need to 'catch (Exception)' rather than 'catch (SocketException)' now as we can't be sure what exceptions other people will throw.

svn path=/trunk/bitsharp/; revision=94661

0ce97b2bd1fb3d8c7e8c915da38d20f8d99790a8 authored over 16 years ago by Alan McGovern <[email protected]>
Reduced LOC and made more readable.

svn path=/trunk/bitsharp/; revision=94653

002e63e31a5c9ad37617db9a05c2b1e979a6feac authored over 16 years ago by Alan McGovern <[email protected]>
Added extra tests for HandshakeMessage

svn path=/trunk/bitsharp/; revision=94650

c0c2a581a91bccf95059360b83876170e445bf79 authored over 16 years ago by Alan McGovern <[email protected]>
Handshake message uses Write() for encoding

svn path=/trunk/bitsharp/; revision=94649

4a69cc75e70b57a00cff6778517b119a1bb7063e authored over 16 years ago by Alan McGovern <[email protected]>
* MonoTorrent.Client/Managers/ConnectionManager.cs: Never try to

download more data than we are expecting - slight performance hit,
but fixes issue when integ...

e3649f2ce71b2cf9dd594ec88e25b2a23f466aa2 authored over 16 years ago by Alan McGovern <[email protected]>
* MonoTorrent.Client/Logger.cs: Add a 'Flush' method

svn path=/trunk/bitsharp/; revision=94640

f8b9fc3543a0315391fbd4f1d9c16d5cb2f2778b authored over 16 years ago by Alan McGovern <[email protected]>
* MonoTorrent.Client/Messages/PeerMessages/HandshakeMessage.cs:

Instantiate with proper values

svn path=/trunk/bitsharp/; revision=94639

33335ae181fb784c989af39e8b89b1c02f1b4c77 authored over 16 years ago by Alan McGovern <[email protected]>
Updated the tests!

svn path=/trunk/bitsharp/; revision=94638

82fef7008ec2dc15d119c4471406e767ebec2938 authored over 16 years ago by Alan McGovern <[email protected]>
Added overloads to selectively enable/disable FastPeerExtensions. Fixed a bug resetting the supports bytes to zero

svn path=/trunk/bitsharp/; revision=94637

1feeaaa76542003d627a141b2b714f4665fabf89 authored over 16 years ago by Alan McGovern <[email protected]>
Reenabled the buffer manager

svn path=/trunk/bitsharp/; revision=94636

66580d47f27acaafe3e7e7540a1ac944da0decdc authored over 16 years ago by Alan McGovern <[email protected]>
Use the new overloads for writing to the byte[]

svn path=/trunk/bitsharp/; revision=94635

95b7bf2c8109b817565f731fd9adbabb86d6c2af authored over 16 years ago by Alan McGovern <[email protected]>
Tidied up the Write() overloads

svn path=/trunk/bitsharp/; revision=94634

58f7c866d5e21b974024a5c325381a1a35c3b1a0 authored over 16 years ago by Alan McGovern <[email protected]>
Fixed a possible threading issue with the new connection code.

svn path=/trunk/bitsharp/; revision=94633

36dc6bcc8c6a0581cc7af70115f7119976d82e44 authored over 16 years ago by Alan McGovern <[email protected]>
Added sanity checking to verify that BytesWritten = ByteLength

svn path=/trunk/bitsharp/; revision=94631

64aba930de05162c3428625494d83ed4db6b86ee authored over 16 years ago by Alan McGovern <[email protected]>
Two more cleanups on event firing

svn path=/trunk/bitsharp/; revision=94614

2f9aba8d3d1e042852aac0dc9c1713ce05e8840c authored over 16 years ago by Alan McGovern <[email protected]>
Ah ffs, why do i keep making stupid typos

svn path=/trunk/bitsharp/; revision=94613

b568e1869e3423aaed6c9f410e8a9ce3795371de authored over 16 years ago by Alan McGovern <[email protected]>
* MonoTorrent.Client/ClientEngine.cs,

MonoTorrent.Client/Managers/TorrentManager.cs: Cleaned up some of
my method firing goodness

...

284521f45160d358998d89a3982934867e25f2cd authored over 16 years ago by Alan McGovern <[email protected]>
* MonoTorrent.Common/Enums.cs: Removed useless enums

svn path=/trunk/bitsharp/; revision=94589

51de2a10491602943a12d7ed8d0d89600273185d authored over 16 years ago by Alan McGovern <[email protected]>
Moved the PeerConnected event from ConnectionManager to TorrentManager

svn path=/trunk/bitsharp/; revision=94588

1376133903dc51cc3b1846730f7194a2694478d2 authored over 16 years ago by Alan McGovern <[email protected]>
* MessageHandler.cs: Added logging for exceptions handling messages

svn path=/trunk/bitsharp/; revision=94557

b8d4f988396efa1b6f3f21396780141af623d695 authored over 16 years ago by Alan McGovern <[email protected]>
* MonoTorrent/MonoTorrent.Client/PeerConnections/PeerId.cs: Added close

connection method.
* MonoTorrent/MonoTorrent.Client/Messages/UdpTrackerMessages/ErrorMessage.cs...

7fec6eb726c7740c02405e548cc1f9a72c538db7 authored over 16 years ago by Alan McGovern <[email protected]>
Disabled the buffer manager because there's something screwy with it. Some messages are being overwritten

svn path=/trunk/bitsharp/; revision=94500

a099df18a4c4b0fbee15fd1617c1d1ea520d065a authored over 16 years ago by Alan McGovern <[email protected]>
cosmetic

svn path=/trunk/bitsharp/; revision=94498

c18aaed534bcf14d3ecf536ccb61a3557ec4e9c7 authored over 16 years ago by Alan McGovern <[email protected]>
Added a little more logging

svn path=/trunk/bitsharp/; revision=94495

10edf4c2f873cec343ff02d31305467407eeca8b authored over 16 years ago by Alan McGovern <[email protected]>
Moved the logging statement to the right position

svn path=/trunk/bitsharp/; revision=94494

5b9cc6a92e76dec9a1594df86791d86c249b3b27 authored over 16 years ago by Alan McGovern <[email protected]>
...

svn path=/trunk/bitsharp/; revision=94493

784139a101b2c185e34d7aafbf2714f7e9dfddd9 authored over 16 years ago by Alan McGovern <[email protected]>
Missed this out

svn path=/trunk/bitsharp/; revision=94492

80c8cd8b02751403a57e8cb9acced8480346620e authored over 16 years ago by Alan McGovern <[email protected]>
*cough* implemented the logger code

svn path=/trunk/bitsharp/; revision=94491

0a33ced059bd74ce5c352191828598dafaf7c1db authored over 16 years ago by Alan McGovern <[email protected]>
Updated the logging code - It's uber sweet!

svn path=/trunk/bitsharp/; revision=94490

9834988335fe3969b9f0e7e60ac908c7f92bd8fd authored over 16 years ago by Alan McGovern <[email protected]>
Bugfixed decoding, minor other misc fixes

svn path=/trunk/bitsharp/; revision=94411

143a5c77de33edcecd8190852b9fb788527639f0 authored over 16 years ago by Alan McGovern <[email protected]>
Made constructors public

svn path=/trunk/bitsharp/; revision=94410

f712417582558af14c40c7585ac55c1f59e0b928 authored over 16 years ago by Alan McGovern <[email protected]>
Big reorganisation!

svn path=/trunk/bitsharp/; revision=94396

972003caf467521e8eb042d5356d25323681082e authored over 16 years ago by Alan McGovern <[email protected]>
Goodbye old crappy interface!

svn path=/trunk/bitsharp/; revision=94379

55041a0f5fe9cf4c8047cfeb6b1e8a84457b0b6d authored over 16 years ago by Alan McGovern <[email protected]>
Cosmetic

svn path=/trunk/bitsharp/; revision=94378

3fb1f9e15ccd5bcb8e2bb1e428a83275632c3165 authored over 16 years ago by Alan McGovern <[email protected]>
Hotness! The new manual connection adding API works :)

svn path=/trunk/bitsharp/; revision=94220

d1e2d246838974b5caa5c812818791a333b8ca4c authored over 16 years ago by Alan McGovern <[email protected]>
Bugfixed the new manual connection code a bit. Still needs some thinking though :(

svn path=/trunk/bitsharp/; revision=94203

29a177b1c97f818a0c0e8e859658d00f5485782b authored over 16 years ago by Alan McGovern <[email protected]>
Put a sanity check in directory creation

svn path=/trunk/bitsharp/; revision=94201

c65c2ae323c56fa45e77e2e1bc2bb0a9f38b7569 authored over 16 years ago by Alan McGovern <[email protected]>
Bugfixed encoding of handshake

svn path=/trunk/bitsharp/; revision=94200

b0d337fb6ec19e69095998ed8554db575395464d authored over 16 years ago by Alan McGovern <[email protected]>
Initialise lastmessage sent and last message received to current time

svn path=/trunk/bitsharp/; revision=94199

9f999ba86562652dc0737e71d32e78007fd7f3ad authored over 16 years ago by Alan McGovern <[email protected]>
*doh* Fixed typo adding array offset. Peer communications work again.

svn path=/trunk/bitsharp/; revision=94114

ef4a93023a0ebe1ed1a4119931608de297d2edc6 authored over 16 years ago by Alan McGovern <[email protected]>
Slight refactoring of the regular peer messages

svn path=/trunk/bitsharp/; revision=94098

ef9d794cf988a22fe3fe0f329aff80cdb23be6d1 authored over 16 years ago by Alan McGovern <[email protected]>
Bada bing bada bang: Working UdpTracker support!

svn path=/trunk/bitsharp/; revision=94097

4d3bcb62dd3c9c17120d265c826f99ccc48525b4 authored over 16 years ago by Alan McGovern <[email protected]>
Marked Read and Write as static

svn path=/trunk/bitsharp/; revision=94096

718c6eff3bbafa14a5c5a53c4e21b256709c2172 authored over 16 years ago by Alan McGovern <[email protected]>
Refactored the TrackerFactory to use a Uri as opposed to a plain string. Implemented the first revision of UdpTracker support

svn path=/trunk/bitsharp/; revision=94090

6ea02eef808418df2aecb242350fc907c552aee3 authored over 16 years ago by Alan McGovern <[email protected]>
Added logic to Encode() to make sure that the peerid is always written as 20 bytes. Added constructor overload to instantiate from an AnnounceParameter object.

svn path=/trunk/bitsharp/; revision=94088

5237af87e6af7825b916426a04735d4a3b91cca8 authored over 16 years ago by Alan McGovern <[email protected]>
Implemented decoding of the peer information. Added accessors for the fields

svn path=/trunk/bitsharp/; revision=94087

7e1358d35fa0af1020ebbac14f9701dbf933a43b authored over 16 years ago by Alan McGovern <[email protected]>
Bugfix for Decode() and added accessors for the fields

svn path=/trunk/bitsharp/; revision=94085

df4c5cce71f0932cb6c1420f4204e7b8e2ac4dcf authored over 16 years ago by Alan McGovern <[email protected]>
The connectionId needs to be stored in host order.

svn path=/trunk/bitsharp/; revision=94084

f9ef9f830472a9f90a7f3acb327fa3f4527f8ecb authored over 16 years ago by Alan McGovern <[email protected]>
Added overload: "byte[] Encode()".

Added overload: "Write (byte[], int, ushort)" to get proper writing of ushorts.

svn path=/trunk/...

7ac998c15438405097172ea6b6e0791f9f7ef441 authored over 16 years ago by Alan McGovern <[email protected]>
Finished implementing message Encoding and Decoding for Udp tracker support

svn path=/trunk/bitsharp/; revision=94077

d73f02e67436739d76313b383ffee059bf6861ec authored over 16 years ago by Alan McGovern <[email protected]>
Left that out of a previous commit...

svn path=/trunk/bitsharp/; revision=94072

be049f6de79df7a746a3d365af5fe90e5994d77c authored over 16 years ago by Alan McGovern <[email protected]>
Moved the peermessage class

svn path=/trunk/bitsharp/; revision=94071

f237e7eaff0adfc77f61fd461e4fb2bafec4934f authored over 16 years ago by Alan McGovern <[email protected]>
Fixed bug from last refactoring - pieces are written to disk correctly now

svn path=/trunk/bitsharp/; revision=94070

2f68af9507beefb55c3e25e60d1b782c23f1b755 authored over 16 years ago by Alan McGovern <[email protected]>
Fixedb bug creating Uri objects.

svn path=/trunk/bitsharp/; revision=94069

b624e5e3512d7db1b7d387a646c192405fa29d4d authored over 16 years ago by Alan McGovern <[email protected]>
Refactored the PeerMessage stuff. Much cleaner inheritance structure - code more readable aswell.

svn path=/trunk/bitsharp/; revision=94063

24aeb4cd4f38d460ad4a717969895837872582a9 authored over 16 years ago by Alan McGovern <[email protected]>
Removed junk

svn path=/trunk/bitsharp/; revision=94048

7411d77ac78235300185485f756e48f560202a00 authored over 16 years ago by Alan McGovern <[email protected]>
Should be more accurately follow the specified requests/sec now.

svn path=/trunk/bitsharp/; revision=94008

7d967e23244bdbb0431758c0a286f7375ec73268 authored over 16 years ago by Alan McGovern <[email protected]>
Mega optimisations for the Tracker:

* Contains a new 'benchmark' mode where a real load can be simulated
* Can handle a simulation of...

d4621fccddcaadaa626d60cc52f58da7fee9b654 authored over 16 years ago by Alan McGovern <[email protected]>
Added a Find<T>(Predicate match) method

svn path=/trunk/bitsharp/; revision=94002

b988c36cc91df8be09ab56c44b22aab9d6bacfad authored over 16 years ago by Alan McGovern <[email protected]>
Predicates ftw - reduced lines of code and increased readability

svn path=/trunk/bitsharp/; revision=94001

0c6ac7f52b436df08a4c4daef316e2baed59288c authored over 16 years ago by Alan McGovern <[email protected]>
Created two tests

svn path=/trunk/bitsharp/; revision=93992

66e9d9883b60aab145c1e4fe2d32424519db0908 authored over 16 years ago by Alan McGovern <[email protected]>
They should be protected, not public

svn path=/trunk/bitsharp/; revision=93991

158a3f34d3f28319b58ccd410343b0351b531d65 authored over 16 years ago by Alan McGovern <[email protected]>
Committed benchmark code even though it doesnt' compile yet so i can link it

svn path=/trunk/bitsharp/; revision=93990

716f0f0d4023b2d0efa0454ee8c74181d961820f authored over 16 years ago by Alan McGovern <[email protected]>
Updated makfiles

svn path=/trunk/bitsharp/; revision=93871

bd74b47e924ee22f506a15b06464df9381c96e83 authored over 16 years ago by Alan McGovern <[email protected]>
Big refactor to make it possible to insert active connections into the engine. Some minor bugfixes wrapped up in this too.

svn path=/trunk/bitsharp/; revision=93870

749ce5ee86bcfe1a763f3e3d0d2ff8a0e0258bd4 authored over 16 years ago by Alan McGovern <[email protected]>
* Client/Tracker/HTTPTracker.cs: Cosmetic

svn path=/trunk/bitsharp/; revision=93467

33f0b27e063396278acafc387f5afd382430ab3a authored over 16 years ago by Alan McGovern <[email protected]>
Fixed detection of trackers which support scrape.

svn path=/trunk/bitsharp/; revision=93466

f5c62fa4affbb136367380edcdaf40f20abfd1ac authored over 16 years ago by Alan McGovern <[email protected]>
Pushed back in the logging improvements

svn path=/trunk/bitsharp/; revision=93367

6d45c4f783243e0bdf5715cb9f87847734340483 authored over 16 years ago by Alan McGovern <[email protected]>
Reverted the change EndReceiveMessage as it wasn't necessary.

svn path=/trunk/bitsharp/; revision=93366

a7cef3e071f8d8691bfa664d8055cab03c0581dc authored over 16 years ago by Alan McGovern <[email protected]>
Bugfix: Should've been doing a case-insensitive comparison to check for scrape capabilities. Found by rzander.

svn path=/trunk/bitsharp/; revision=93365

fdeea7d00e6120b2207a9730a5fdc67332528bd2 authored over 16 years ago by Alan McGovern <[email protected]>
Added ability to specify the base directory name

svn path=/trunk/bitsharp/; revision=93345

266796ab6e30ffe3cabf9ad9d11353bb8d939d1e authored over 16 years ago by Alan McGovern <[email protected]>
Made a property public

svn path=/trunk/bitsharp/; revision=93344

b9891b4b157fa258d44df666c8f3593973d26c43 authored over 16 years ago by Alan McGovern <[email protected]>
Refactored the Tracker base class again. Simplified usage

svn path=/trunk/bitsharp/; revision=93343

e395160fc337a029c03fa9824332a558df5ba62a authored over 16 years ago by Alan McGovern <[email protected]>
Patch from Matej Skubic to make sure the 'private' key is retained through subsequent calls.

svn path=/trunk/bitsharp/; revision=93330

07725540609438c7c4c3f44f035b545e4b360259 authored over 16 years ago by Alan McGovern <[email protected]>
Made sure read errors result in a CleanupSocket and improved diagnostics

svn path=/trunk/bitsharp/; revision=93216

51a47936246407818691f7fc49a9ee10f1ba11a7 authored almost 17 years ago by ahenderson <ahenderson@localhost>
Simplified the usage of ListenerBase

svn path=/trunk/bitsharp/; revision=92725

f425e808db1dd943d6b3ce3673e5d75f258ba860 authored almost 17 years ago by Alan McGovern <[email protected]>
* Client/Managers/TrackerManager.cs: Added fix for meshworks manual tracker

svn path=/trunk/bitsharp/; revision=92707

d8c252c9cdd8fd76c781a46fba517f5b11faf79d authored almost 17 years ago by Alan McGovern <[email protected]>
* Client/Tracker/TrackerConnectionId.cs, Client/Peers/Peer.cs: internal

- public
* Client/EventArgs/TrackerRequestEventArgs.cs,
Client/EventArgs/AnnounceResponseEve...

0eb86cdb417e4595fbb5ef0357c14c4f1771f831 authored almost 17 years ago by Alan McGovern <[email protected]>
Cosmetic

svn path=/trunk/bitsharp/; revision=92704

92a5a6f560766c1d2c67525b3a5a1050684f5bab authored almost 17 years ago by Alan McGovern <[email protected]>
Default to max of 15 open filestreams

svn path=/trunk/bitsharp/; revision=92703

5610a78b934cda275fbb58aba28dcf747076758d authored almost 17 years ago by Alan McGovern <[email protected]>
Added filestream buffering - Can now keep a user settable amount of files open at the same time.

svn path=/trunk/bitsharp/; revision=92702

a3f8cb2bd2495a1c495391fe7cdf9fa9066f15ef authored almost 17 years ago by Alan McGovern <[email protected]>
Bugfix: Ensure that the PieceHashed event is fired even when the files don't already exist

svn path=/trunk/bitsharp/; revision=92629

b3310cb7d1cc20fdd7c1dc1a1484fcc5e2937ba4 authored almost 17 years ago by Alan McGovern <[email protected]>
Removed call to preallocate the entire file - it's no longer necessary. Fixes bug hashing incomplete files.

svn path=/trunk/bitsharp/; revision=92324

a1fc8f34a8bcb3145eff6749fe1e475876f05cf0 authored almost 17 years ago by Alan McGovern <[email protected]>
Fixed makefile compilation

svn path=/trunk/bitsharp/; revision=92321

1b1b2b818512fd28320098305dd6c73a11e02d13 authored almost 17 years ago by Alan McGovern <[email protected]>
changed #warnings into // FIXME's. Fixed several compilation warnings.

svn path=/trunk/bitsharp/; revision=92301

30826d39e30432570532d3f36d87d68d5bb767e2 authored almost 17 years ago by Alan McGovern <[email protected]>
Added assembly info to the solution

svn path=/trunk/bitsharp/; revision=92300

93493c3535b2115ac5945915ac549ad2543dc3db authored almost 17 years ago by Alan McGovern <[email protected]>
Default to unlimited download speed

svn path=/trunk/bitsharp/; revision=92218

0dc07421bd2d175d5f8e26de21fef7cafbe5112c authored almost 17 years ago by Alan McGovern <[email protected]>
Fixed threading bug where diskmanager would get stuck trying to do a read whilest in the middle of a write.

svn path=/trunk/bitsharp/; revision=92217

30d2e0477702541751bbf93097ef6062e441b66a authored almost 17 years ago by Alan McGovern <[email protected]>
Bugfix: Propagate the bytesRead back from the async read

svn path=/trunk/bitsharp/; revision=92211

42ceadaa085335a6a91e270eb1e18c3b62d370a4 authored almost 17 years ago by Alan McGovern <[email protected]>
Moved the settings from diskmanager to EngineSettings. Correctly handling the case where the limits are 0.

svn path=/trunk/bitsharp/; revision=92191

e277b28bc5f839124efe95a31711f25963c78c77 authored almost 17 years ago by Alan McGovern <[email protected]>
Implemented initial read rate limiting. Now both read and write limiting are supported. Huzzah!

svn path=/trunk/bitsharp/; revision=92190

b0801b75fcb74718630842f2ea69dcb39f4a456d authored almost 17 years ago by Alan McGovern <[email protected]>
Should never get argument exceptions again.

svn path=/trunk/bitsharp/; revision=92186

f1171f1f51c880a748cd21cf7d198ac633d7701e authored almost 17 years ago by Alan McGovern <[email protected]>
Removed a #warning

svn path=/trunk/bitsharp/; revision=92185

ffa14f0098ce0bc0de2134ef53e45b9259cbd49c authored almost 17 years ago by Alan McGovern <[email protected]>
Cosmetic

svn path=/trunk/bitsharp/; revision=92184

5bcdcb7cd9fecc84216f6d9781fa523b7b69ad5c authored almost 17 years ago by Alan McGovern <[email protected]>
Feature: All code which could result in a blocking operation has been removed from TorrentManager.Start(). Code dealing with hashchecking a torrent has been simplified and consolidated into one method.

svn path=/trunk/bitsharp/; revision=92183

4e76b5dc884cf5eea92857c1673c67f80b0aee7b authored almost 17 years ago by Alan McGovern <[email protected]>
The last commit also has: All disk IO goes through the disk manager. Reduces disk trashing when more than 1 torrent is hashing. Can now handle torrents with 1000's of files.

svn path=/trunk/bitsharp/; revision=92178

0d6a82441ec423c6a583ab0084ebbfc243b405c9 authored almost 17 years ago by Alan McGovern <[email protected]>
Features: Implemented rate limiting on reading/writing

svn path=/trunk/bitsharp/; revision=92177

73617053dfd2a2cce9308b03fbb398400ed255c8 authored almost 17 years ago by Alan McGovern <[email protected]>
Cosmetic

svn path=/trunk/bitsharp/; revision=92176

1a49dbcc21e83329c18809da67d898a1d243a429 authored almost 17 years ago by Alan McGovern <[email protected]>
Cosmetic

svn path=/trunk/bitsharp/; revision=92175

ed28840dd832ff0a5f300a9c946f22678d0915d3 authored almost 17 years ago by Alan McGovern <[email protected]>
Cosmetic

svn path=/trunk/bitsharp/; revision=92174

131b09c835550bc1a7999a4795021f74abc86b02 authored almost 17 years ago by Alan McGovern <[email protected]>