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

Rename some API as part of the encryption refactor

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

263265d8be4b095355a1a84aec1ff868354888bb authored over 16 years ago by Alan McGovern <[email protected]>
Removing cruft

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

637b1acc8de69c4acab50558afd2b4e37ac0d5fe authored over 16 years ago by Alan McGovern <[email protected]>
Cleaning up some compile warnings

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

445801535e2ccac6c5d3d6a30da2c1fd14549b51 authored over 16 years ago by Alan McGovern <[email protected]>
Removing clscompliant warnings

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

4264113529fb37cdd71eca5e14e65d93db86614a authored over 16 years ago by Alan McGovern <[email protected]>
Remove extra instantiation

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

8c52b98a8aebf0fd3df0c1d4e961630d3f622d67 authored over 16 years ago by Alan McGovern <[email protected]>
Propagate sKeys from the socket listener

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

33e9b5e90426419507ee00d66e56019ba25bc1f1 authored over 16 years ago by Alan McGovern <[email protected]>
Decode incoming handshake correctly. Also if a connection can't be established - don't retry. Add to busy queue.

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

b1eca83f3418a6a17f6661278d9368854be08709 authored over 16 years ago by Alan McGovern <[email protected]>
Make sure the sKeys are propagated correctly

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

372b997198f1746dc0bc59fb01b0b61453dbce26 authored over 16 years ago by Alan McGovern <[email protected]>
If the handshake is invalid, it'll throw an exception decoding - make sure we catch this

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

067a1693e9d717b264c66985196376f17597b5eb authored over 16 years ago by Alan McGovern <[email protected]>
Add tests for whether the initial payload is attached or not. Reenable encryption by default... again.

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

6ca0c6f09e0a64e688bd168db142f92a9fa2ae54 authored over 16 years ago by Alan McGovern <[email protected]>
Removed dependency on SampleClient for the NUnit tests. Updated tests accordingly

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

30df2cd79ee223faf1bea1cc9b27917be98c709d authored over 16 years ago by Alan McGovern <[email protected]>
Encryption passes existing NUnit tests again.

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

e53dfe802cff09f7c93088004df60e5ff6495aee authored over 16 years ago by Alan McGovern <[email protected]>
The test should encrypt the data before transmitting it

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

34d6c73de8de2093cc31af2ca275c0b1b216f2a9 authored over 16 years ago by Alan McGovern <[email protected]>
Added timeouts to tests

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

a9bafc4288f7af6b1e36188a52402613bc4f034a authored over 16 years ago by Alan McGovern <[email protected]>
Handshake with incoming connections properly

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

a1b8f0a2f4c360728aea9abe223e93390c7e569c authored over 16 years ago by Alan McGovern <[email protected]>
Correctly decide whether encryption is usable or not

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

e8f6bc605192b589f661c3f55a5650cd8ec91384 authored over 16 years ago by Alan McGovern <[email protected]>
When receiving the messagelength, we don't want to prepend the buffer with 'byteToReceive'.

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

f8d782ad7d27909228f9e88ffcbf4964d273358d authored over 16 years ago by Alan McGovern <[email protected]>
Snipping cruft i don't need/use

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

9ad271f91dcd7b9e64c107509977882088d71d19 authored over 16 years ago by Alan McGovern <[email protected]>
Trim some cruft - I only need the BigInteger class, nothing else

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

a0943f3aea844b706194e253350fd09b39694915 authored over 16 years ago by Alan McGovern <[email protected]>
Interface was missing several members

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

2abddc35578dc38b7d94bd77517443d286c75915 authored over 16 years ago by Alan McGovern <[email protected]>
Cosmetic

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

2c2850e5d1133448a16428ca098299fa0e26e46e authored over 16 years ago by Alan McGovern <[email protected]>
Cosmetic - Drop a lot of excess try/catches, shrinkify excess logic

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

7f8a3277327ae22c92668465cb42c05dcd4018d8 authored over 16 years ago by Alan McGovern <[email protected]>
Switch back to the crypto-secure RNG

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

66888056af30fd54e0bbbaefa664380920b2d987 authored over 16 years ago by Alan McGovern <[email protected]>
Disable encryption by default again - the nunit tests aren't completing correctly

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

f5991f979fd3f647b14a98138a48362af540aa73 authored over 16 years ago by Alan McGovern <[email protected]>
Added myself to header

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

23f390d3b0bada5d768f74af10d7202f230f0085 authored over 16 years ago by Alan McGovern <[email protected]>
Fix possible crash when the connection has been closed. Instead propagate the exception up throught the asyncresult

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

db506c903dad6315056aab7980381b402d3db389 authored over 16 years ago by Alan McGovern <[email protected]>
Fix a nasty race condition where the engine could hang when stopping a torrent

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

e183b24b399e1d72e2eac8c2fdc88d75b9c6a73f authored over 16 years ago by Alan McGovern <[email protected]>
Fixed HttpConnection - it was broken when i refactored the message decoding

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

d035af19e05d42edb3bbe951285df341d2506971 authored over 16 years ago by Alan McGovern <[email protected]>
API Change: Message.Decode expects the first four bytes to be the MessageLength now. It means code like this is possible: Message.Decode(Message.Encode()). Previously the message length was assumed to be removed when Decode is called.

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

318005978afbc405d775f1826517b088bb66ba71 authored over 16 years ago by Alan McGovern <[email protected]>
Bugfix: LTChat was writing the wrong message length.

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

0ebbb2c81cf30029e330401e2abd1e1b8af9d167 authored over 16 years ago by Alan McGovern <[email protected]>
Fixed an issue with the pattern matching in Synchronise

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

152c4bf5e6db81edab40b0bc10547ce27f27ec54 authored over 16 years ago by Alan McGovern <[email protected]>
Use the fancy schmancy Message.Write methods to fill in the buffer

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

b8c4714b7513461c445f72c185df4dc579009623 authored over 16 years ago by Alan McGovern <[email protected]>
Add missing file

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

fa643f03671c63ec5b129a1bab11b055947e4df8 authored over 16 years ago by Alan McGovern <[email protected]>
Commit Oliviers refactoring of the Extension messages

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

88f256a5e9a2c26646f913b7decbba0ac6498138 authored over 16 years ago by Alan McGovern <[email protected]>
Cosmetic

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

3c33796b4babd8e7827346411648cfbdb2f6cf0a authored over 16 years ago by Alan McGovern <[email protected]>
Comment out third tracker to avoid having to wait for a webrequest timeout when running tests

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

1f217270f1afc68f2d29ced1fee428869500dc35 authored over 16 years ago by Alan McGovern <[email protected]>
Ensure the method completes correctly if an exception is thrown

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

5baf4a222302f76f2f9a675ee81d2fecbc9a1f2e authored over 16 years ago by Alan McGovern <[email protected]>
Patch from olivier - Add extra method to get compact peer data

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

7d43576ad4431f4b37563eb8afdcef8d6f5caf91 authored over 16 years ago by Alan McGovern <[email protected]>
cosmetic parameter renamings

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

c32abe419a8644e736db501e909df707005f8c86 authored over 16 years ago by Alan McGovern <[email protected]>
Added another test for when only part of the expected data is sent

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

b34fc7cdad6f0b11a1013b7cd5cb04e185c02b57 authored over 16 years ago by Alan McGovern <[email protected]>
Added test for when server is inactive

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

618958580ff339124dafdd51e2ecf98132d66d13 authored over 16 years ago by Alan McGovern <[email protected]>
Allow multiple consequtive requests

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

c51abf8bf6ace6c1054357cfe960cdbd30fea3b2 authored over 16 years ago by Alan McGovern <[email protected]>
Update test - Send 5 pieces as fast as possible in seperate thread to simulate real conditions better

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

1a0b5f4149661b207c2a97937aabfe2796ae6ddc authored over 16 years ago by Alan McGovern <[email protected]>
HttpConnection can now download chunks from the internet. Basic NUnit test included too!

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

19a5d3f2162fbfef9043fed64063f469efd17b2d authored over 16 years ago by Alan McGovern <[email protected]>
Comment out the main method - not needed

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

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

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

92f45ba7fae429d925fc445eed321ff65e8eea5d authored over 16 years ago by Alan McGovern <[email protected]>
Should now be able to chunk-transfer entire pieces. There's no detection for when the entire piece has been transferred though.

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

a91f76b29ca4c0b0248a69ea3fda09a5a63e1a0d authored over 16 years ago by Alan McGovern <[email protected]>
Make the helper methods public - they're useful

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

f0cb6e71d33f355e28871af99e0824fd2ff69ab4 authored over 16 years ago by Alan McGovern <[email protected]>
Begin a rewrite of HttpConnection to better fit in with how the library operates.

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

ad49ebb3cff53e9f9fe3ba943f7ee6fb4522bb6e authored over 16 years ago by Alan McGovern <[email protected]>
Committing the initial code for WebSeeding (downloading off http servers) and SuperSeeding (improved performance when starting a new torrent). Disabled by default. Patch from Olivier Dufour

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

b0e03e96683831d3b0d19c1599901743c153950c authored over 16 years ago by Alan McGovern <[email protected]>
Ensure we catch all the exceptions

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

1c625bcd272531c59dda10073dd7412c49c68fd5 authored over 16 years ago by Alan McGovern <[email protected]>
Speed increase for BigInt - must push to mono

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

dace77578a2d12bb525a798033c459e3b18086bb authored over 16 years ago by Alan McGovern <[email protected]>
Nuked dead code

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

9bc1d08240bd77673d5ef46ce839273d405fe989 authored over 16 years ago by Alan McGovern <[email protected]>
Added some comments

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

600fa97ca482c6c176f5fe6cddf2343542f51b5e authored over 16 years ago by Alan McGovern <[email protected]>
Bugfix: Reset received data to zero if the received data is not part of a BitTorrent handshake. This removes the need for the horrible GOTO hack. Also remove some old encryption logic as its no longer needed.

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

677cec68e7abf4111498cb471bc7ab7df75340da authored over 16 years ago by Alan McGovern <[email protected]>
Bugfix: Propagate the encryption exception right up to the EndXXX call where it will finally be thrown.

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

9167bd785f304cf4432079d7d58021e077f7bc7a authored over 16 years ago by Alan McGovern <[email protected]>
Ensure that the stats reflect the Encryptor in use before advertising the new peer

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

12946d4858d5c1851e9e77dae3b69cf8621c2996 authored over 16 years ago by Alan McGovern <[email protected]>
Added NUnit tests so that both PeerA and PeerB encryption are fully tested when incoming/outgoing connections are made within monotorrent

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

7f48b59df173f85a7933912060e6f60b709b3e9b authored over 16 years ago by Alan McGovern <[email protected]>
Default to Auto encryption

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

9079b4e18e2b1efa7a8afd2b7c370da0e8b13a86 authored over 16 years ago by Alan McGovern <[email protected]>
When an outgoing encrypted connection is detected, use PeerAEncryption rather than trying to receive a handshake (which will never arrive)

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

fcb25c00bef7873adb49d5325b727afff5e871fa authored over 16 years ago by Alan McGovern <[email protected]>
Allow the Encryption code to complete before firing the PeerConnected event

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

41dd47cd930030c57c7b30e6b25dbfe220a02c94 authored over 16 years ago by Alan McGovern <[email protected]>
Bugfix: The decryptor should decrypt incoming data, not the encryptor

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

87709d84dfcd4bdc0f27b92388913a1a6371c55c authored over 16 years ago by Alan McGovern <[email protected]>
Bugfix: If i connect to someone, the connection is *not* an incoming one

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

9ae2693d89c3f3a29bb3609f450f56964c93e460 authored over 16 years ago by Alan McGovern <[email protected]>
Fixed bugs in RC4Header only encryption - this was always broken i think. All 7 NUnit tests on encryption now pass.

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

bd41a33cd7489a2011a8c4e8c9e007ab59d62a1e authored over 16 years ago by Alan McGovern <[email protected]>
Don't swallow the exception - propagate it

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

f5ebd14c6dc5730ba79a399ba20b41bf7764470a authored over 16 years ago by Alan McGovern <[email protected]>
Bugfix: Don't pass null, pass the existing exception

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

9db32f66d575336c01c830a1e77d7a55e12166cc authored over 16 years ago by Alan McGovern <[email protected]>
Fixed possible race conditions in the encryption code caused by calling BeginSend multiple times simultaenously. Mostly finished the initial encryption factory.

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

6e890b124bb12c052e1e617199b448d10864c507 authored over 16 years ago by Alan McGovern <[email protected]>
Fix build

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

f493f04977af4e7f4d673146285ccc27b0f4191b authored over 16 years ago by Alan McGovern <[email protected]>
The next chunk of refactoring for the encryption has been completed. RC4 Encryption is still disabled by default. Refactor about 70% complete.

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

18923c4fe4d374570a98e23c77605ffb9c8698f6 authored over 16 years ago by Alan McGovern <[email protected]>
Encryption disabled by default for the moment while it is being refactored. Added basic NUnit tests for encryption.

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

f65ba1d8ab4b247d1f455aaf6f08e507ed14abab authored over 16 years ago by Alan McGovern <[email protected]>
Goodbye junk

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

f51487b5e8854d7b8a916bf42216b2fa893df017 authored over 16 years ago by Alan McGovern <[email protected]>
* MonoTorrent/MonoTorrent.Common/SHA1Fast.cs: Updated the SHA1 code to

mirror the recent changes in the mono implementation.

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

9d38b160d3feef6ded7f0e8b231efaa058e5fe90 authored over 16 years ago by Alan McGovern <[email protected]>
Added a newer, faster version of the SHA1 algorithm

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

d08e9556910188bd19fb1a33faddf23500c0fc89 authored over 16 years ago by Alan McGovern <[email protected]>
Updated makefiles

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

e41093ce66f06d715b2c739bf7b9abdc034c2854 authored over 16 years ago by Alan McGovern <[email protected]>
Removed debug line

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

889d25fd05b5d4896d5c23c8159ecd1277f9b0e9 authored over 16 years ago by Alan McGovern <[email protected]>
Removing console.writelines

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

44ccc7342a4aaf5d1fd11fd9b9e6d3cb73c5aaf3 authored over 16 years ago by Alan McGovern <[email protected]>
Fixed pc file again

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

21f00cc67984921f767d0a21a04ea25b35e145df authored over 16 years ago by Alan McGovern <[email protected]>
Updated the pc file

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

af623ae17d311e372a6179ab4f474c3b8300acd5 authored over 16 years ago by Alan McGovern <[email protected]>
removed old pc file

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

50ee443db2b1ac68be8003cd628cdf3a364ef641 authored over 16 years ago by Alan McGovern <[email protected]>
Add AssemblyInfo.cs to the build

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

2bd475a4849f8a7ea5360035cda4b897014f00ba authored over 16 years ago by Alan McGovern <[email protected]>
Killed old folder

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

c08100e3f5017e2fb87b75d41f33eb2fd45ffc60 authored over 16 years ago by Alan McGovern <[email protected]>
remove Makefiles from svn

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

95beffa0d7b0f36b5b18195ab73c99308aa24b90 authored over 16 years ago by Alan McGovern <[email protected]>
Enabling monodevelop makefile integration

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

9c225e98e515618b1edfb170763848d5a36253ad authored over 16 years ago by Alan McGovern <[email protected]>
* MonoTorrent/MonoTorrent.Client/PeerConnections/PeerIdInternal.cs,

MonoTorrent/MonoTorrent.Client/Managers/ConnectionManager.cs:
Hack-fix: In some cases it can ...

557e69833d9ec4e88fa7b90b616605fc95a02c28 authored over 16 years ago by Alan McGovern <[email protected]>
Removed redundant logic

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

4feacc0ec4d0c92327fe645ab1f2d7c2a432760d authored over 16 years ago by Alan McGovern <[email protected]>
Simplified hashing logic.

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

c6c4f98909fe0edf4f03807eb09c50c13263d16a authored over 16 years ago by Alan McGovern <[email protected]>
Ensure the 'pieces' section has been loaded before the 'files' section is loaded.

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

d63572b9ce32c5b0c9274c566917e97800a2d20d authored over 16 years ago by Alan McGovern <[email protected]>
Removed some CWL

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

53868d0d989cea0cb87a45107ccc61f2c0e5ab23 authored over 16 years ago by Alan McGovern <[email protected]>
Provide an event to notify the user if a bad exception happens in one of the async threads

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

b34fc2467842a49b9e5aa6c347b3b1c3e08e265a authored over 16 years ago by Alan McGovern <[email protected]>
Fastpath - If there are no handlers, don't queue in the threadpool.

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

1ca0b5b60f51c45a322c87fc5799c013fef102f8 authored over 16 years ago by Alan McGovern <[email protected]>
Ensure endIndex doesn't go over the limit if a torrent is an exact multiple of PieceLength

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

554dd2b052c675a71d8bafb173a96f9194a773b8 authored over 16 years ago by Alan McGovern <[email protected]>
Removed redundant logic

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

ada208f280d76a7b9390073224a4499afdf9d68a authored over 16 years ago by Alan McGovern <[email protected]>
* MonoTorrent/MonoTorrent.Client/Managers/TorrentManager.cs: Fixes

#375377 - FastResume data correctly reloaded from disk

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

5579d0d5d52e09106201eb73f6375696a8cb8e6b authored over 16 years ago by Alan McGovern <[email protected]>
* MonoTorrent.Client/PiecePicking/StandardPicker.cs: If priority is set

to 'Do Not Download', ensure all indices for that file are set to
false so we don't request i...

5f0964738ad2acac7b038d901c456b3520059c1c authored over 16 years ago by Alan McGovern <[email protected]>
* MonoTorrent.Client/Managers/PieceManager.cs: This wasn't supposed to

hit svn...

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

2526b07b42ff0f78eccdd1aa1cab6ae8090a747f authored over 16 years ago by Alan McGovern <[email protected]>
* MonoTorrent/MonoTorrent.Client/Managers/TorrentManager.cs: Bugfix:

When loading fast resume, trigger the PieceHashed event to update
per-file progress.

svn pat...

bb1d0831bd4c20094422cd401cb148ace7980fe6 authored over 16 years ago by Alan McGovern <[email protected]>
* MonoTorrent.Client/Tracker/TrackerFactory.cs: Added try/catch to

prevent an invalid address exploding the engine

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

fc5610015a0d2e02fb6e7342cdb72297e8449c39 authored over 16 years ago by Alan McGovern <[email protected]>
* MonoTorrent.Common/SpeedMonitor.cs: Fixed bug where speeds weren't

being reset.

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

10909b07f072e00498598566c33137bc85d84bca authored over 16 years ago by Alan McGovern <[email protected]>
Added more output

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

754b97951d338893129e23cbd19030a3f2a61ead authored over 16 years ago by Alan McGovern <[email protected]>
Storing the right handle and fixing output

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

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