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

cosmetic changes

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

6a546f22744b8b350753ff4b30527d7c8cb60823 authored over 17 years ago by Alan McGovern <[email protected]>
Disabled in-memory logging by default

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

22feec321bb426b212d38339ff7c1f7157f5680d authored over 17 years ago by Alan McGovern <[email protected]>
Bugfix: Update to make sure truecount is accurate when using the binary and/or/not methods. Misc cleanups aswell. Updated gethashcode.

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

255087f05985adc72e25d18b3010fd39d269a2aa authored over 17 years ago by Alan McGovern <[email protected]>
Fixed bug in calcuating the start/end PieceIndex for files

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

1a19d6bad2543b9576c21f55c2e29ab5cf02f7f6 authored over 17 years ago by Alan McGovern <[email protected]>
Fixed another bug with my recent commit as pointed out by David Wang. He also pointed out the last two bugs. Great stuff!

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

e61181269e3887012e1ad621d9098cd3161313dc authored over 17 years ago by Alan McGovern <[email protected]>
Removed the call to "TryConnect" from the end of "CleanupSocket" in order to prevent a bug regarding the async io

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

5dd236bf3fdc521bc37e82bd08f55103fd00bdaa authored over 17 years ago by Alan McGovern <[email protected]>
Correctly working out the start/end index of the files

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

4e682c0463d01609c388beae738967109e9581f2 authored over 17 years ago by Alan McGovern <[email protected]>
Should have used message.BlockLength, not message.PieceLength

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

35302b41cd306454e3ed22352811ae059c54ea54 authored over 17 years ago by Alan McGovern <[email protected]>
Further fix :p

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

2a887025cd05090d2c44af0fb7446f35b8f39d33 authored over 17 years ago by Alan McGovern <[email protected]>
Updated prebuild script

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

c81977fc6871188e98874f9e5c6870fc5db4ae53 authored over 17 years ago by Alan McGovern <[email protected]>
Renamed TestClient to MonoTorrent

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

8f99e68391773d8a499d32ca43fcda76ecf8b9ef authored over 17 years ago by Alan McGovern <[email protected]>
Updated TODO

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

733b307fbc4583fcf7056913ee167080535cbb43 authored over 17 years ago by Alan McGovern <[email protected]>
Removed debugging code

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

94e208de13969208e0b8632e1ea90fa48c1d71cd authored over 17 years ago by Alan McGovern <[email protected]>
Updated the TODO

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

89c56d60c9fb7024491d9e87eacd2ea85a7b55ab authored over 17 years ago by Alan McGovern <[email protected]>
Commented and updated to make it look nicer

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

2cff898ffb9f84609d90131ee65c16c2aa280dc9 authored over 17 years ago by Alan McGovern <[email protected]>
Converted IPiecePicker to an abstract base class. Added some helper methods. Updated the BitField class to contain some more properties and updated library to use those properties.

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

3248867d9a9ee721eb0e59fc88a77313bcf0e894 authored over 17 years ago by Alan McGovern <[email protected]>
Reenabled FastPeers. Bugfixed handling for RejectRequest messages so that i accurately keep track of how many requests each peer has. EndGamePiecePicker has been disabled until it can be fully tested.

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

6debf29e4f9e94cc0940008b9db69ed92d4b052b authored over 17 years ago by Alan McGovern <[email protected]>
Enable encryption, but leave FastPeers disabled for the moment

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

20cf2b0987f814c95d723620654092607ff2b904 authored over 17 years ago by Alan McGovern <[email protected]>
Bugfix: Wasn't doing a proper check to see if fast peers extensions were supported on both sides.

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

f2742bd7e5c7e5be4243eb87df489b2390dbf317 authored over 17 years ago by Alan McGovern <[email protected]>
renamed "SupportCrypto" to "SupportsEncryption". Made one or two minor updates here and there to make sure encryption is never used when SupportsEncryption is set to false.

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

c851722a727a77c330c3e09f603806a15852881e authored over 17 years ago by Alan McGovern <[email protected]>
Updated piece picking code and choke message code to accurately count how many pieces each peer is requesting and how many we've requested off each peer and how many total active requests we have. etc

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

6e5e28345855c303fea0a582171a6bf22787ac65 authored over 17 years ago by Alan McGovern <[email protected]>
Disable fast peer extensions until i can update support

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

ddf4967d529704de2d1f4cb33bbf21a2571f5b74 authored over 17 years ago by Alan McGovern <[email protected]>
Overrode equals

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

249fb1287a26b2fe202d9f47f45fadfec6a09256 authored over 17 years ago by Alan McGovern <[email protected]>
Updated handling for cancel messages

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

b4ad9a8290ee6277608a76aae5b1e2b693222ed4 authored over 17 years ago by Alan McGovern <[email protected]>
Updated handling of request message

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

3d020536c9b5cf898237e57f16b85e3648b60b47 authored over 17 years ago by Alan McGovern <[email protected]>
Bugfix for EnqueueAt. Properlyl enqueues the message when the queue is empty.

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

5f277dc52acbf30115468e7a319401d90c4815fe authored over 17 years ago by Alan McGovern <[email protected]>
Updates to the logging code. Now all writelines go through the logger.

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

33e173bf2537320951390c86c5ea5c0df5f0f3f6 authored over 17 years ago by Alan McGovern <[email protected]>
Bugfix for encryption: Correctly encrypting the *entire* message

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

ebd027bd0ebe94616b8150b48bdfec5e30d66300 authored over 17 years ago by Alan McGovern <[email protected]>
Removed hardcoded constant and fixed a bug when choking a peer. Now the choke message is sent *before* the reject request messages, as they should be.

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

05612fad0fd45ff47fbf36ee812ccf75a42fa2fc authored over 17 years ago by Alan McGovern <[email protected]>
Updated .ToString() to give more details

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

5c6e1f9601834be23a79d63e907193cca7fe6179 authored over 17 years ago by Alan McGovern <[email protected]>
Put in proper handling for reject request messages

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

e325d4569ca7b37a0abe746d178b75b82e708a53 authored over 17 years ago by Alan McGovern <[email protected]>
Added in a fastpath

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

04d8e74bae183ced777c009ba948b56e35a4fabc authored over 17 years ago by Alan McGovern <[email protected]>
Bugfix: Removed infinate loop in the piece picker in cases where there are fast pieces we can request yet the peer doesn't actually have any of them.

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

6cf57d114e59a48f14cfcee7d3b76ab5ca46993d authored over 17 years ago by Alan McGovern <[email protected]>
Further optimisation: Attempt to begin sending requests immediately if we are not already processing the queue

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

1bd660a8f6ce56b9007d0fbac4c0e88d23f2b2ce authored over 17 years ago by Alan McGovern <[email protected]>
When unchoked, try to add requests immediately.

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

407f8fd703b361e0047677487def7102439e82d5 authored over 17 years ago by Alan McGovern <[email protected]>
Bugfix for handling RejectRequest messages

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

f27b55f0c56aaadd5a09bc5c0920fa7ea8e6ab85 authored over 17 years ago by Alan McGovern <[email protected]>
cosmetic

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

b33b61bf1efdefbf85e6b5f759d4fbb0c6e2dfae authored over 17 years ago by Alan McGovern <[email protected]>
This call to TryConnect needs to be outside the lock

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

e48b270af31d6496fd338f098e03de87c9f8e41e authored over 17 years ago by Alan McGovern <[email protected]>
Bugfix: The call to connect to the peer should've been inside the lock

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

5278272e3a05ce2cf2299a8d36c5fd06f693ce53 authored over 17 years ago by Alan McGovern <[email protected]>
Bugfix to encryption code: when handling a connection as encrypted, we need to stop executing the method

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

d6c51393a19152a5cbc35a3d0cffd99c92d6251e authored over 17 years ago by Alan McGovern <[email protected]>
Incoming connections should now pass correctly to the right torrent manager. It was accidently left broken since my last refactor

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

858b958563031c80a375ed10f672b6375ff5babe authored over 17 years ago by Alan McGovern <[email protected]>
switched out the hardcoded string

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

c8754afcee7ac1db17e5d4b65b5fa324eaa43a10 authored over 17 years ago by Alan McGovern <[email protected]>
Updated encryption code from David. Should fix the problem with encrypted incoming connections. I just have to unbreak the rest of the handling now ;)

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

c0c345137ef380a9821a8b3d7c420e334dd60089 authored over 17 years ago by Alan McGovern <[email protected]>
Updated to add an extra check to make sure that the protocol string sent in the handshake is correct

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

8505788c2143efad4465d11ad6c2c1b46e1dc8f3 authored over 17 years ago by Alan McGovern <[email protected]>
Fixes so compilation works properly under mac os

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

694e7168e086d89bf90109416fc19816267bf93b authored over 17 years ago by Alan McGovern <[email protected]>
Fixes to compile properly

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

e5563f4f6c658c882b92664a9d64227f880b443d authored over 17 years ago by Alan McGovern <[email protected]>
Fixed a bug when registering torrentmanagers. Added two new AsyncCallbacks to optimise memory usage.

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

0ff99b7f2ec908d6c336e4576ca47e45ee7e615a authored over 17 years ago by Alan McGovern <[email protected]>
Initial commit of Peer connection encryption code. All thanks go to David Wang for this implementation. He's put in a lot of hard work into it!

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

829c1ad330a990f475f94ac79e328163624d7c8e authored over 17 years ago by Alan McGovern <[email protected]>
Refactored the send/receive methods to remove redundancy and make it easier to read.

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

ead3c037c1c6fd7732ae80815eb65944f0cbe77a authored over 17 years ago by Alan McGovern <[email protected]>
Added new property for encryption support

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

ac59f360ca6b397e8af9bb332a9c01e620f2c7cd authored over 17 years ago by Alan McGovern <[email protected]>
Added two new properties for Encryption settings

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

78c65390890a9fc4e90fda8b8f6af56b59361c1a authored over 17 years ago by Alan McGovern <[email protected]>
Moved handshake logic from the ConnectionManager class inside the handshake.Handle method.

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

fe2fe165e5d729a6784324bf938903ab07c9e22a authored over 17 years ago by Alan McGovern <[email protected]>
Added two new enums to cope with Encryption

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

e9139ab814e8384742034b28fb1ee8caffe9bd4b authored over 17 years ago by Alan McGovern <[email protected]>
Made the logger log to the screen too

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

d5b7713108c129202a07626dbe43798efac5aca3 authored over 17 years ago by Alan McGovern <[email protected]>
Efficiency update

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

00e30cac3d8894445f4624991545e3433bad9771 authored over 17 years ago by Alan McGovern <[email protected]>
Connecting to other peers is now completely async and doesn't depend on the timer anymore.

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

d53468e00c3d1e8d4abd853f5487f8fe6f44f0fc authored over 17 years ago by Alan McGovern <[email protected]>
Bugfix: Don't dispose the portmapper if we never used it.

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

d98cd18f57a5ac9c99a1958e0dadcdbd05c87632 authored over 17 years ago by Alan McGovern <[email protected]>
Updated to TODO to remove items i've completed

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

82cd1bccbc8400c9898b858d877c7b6c14413a70 authored over 17 years ago by Alan McGovern <[email protected]>
Fixed typo in the buffer manager

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

c3e7d5e53609565a51e3760272163fe7ec5f741e authored over 17 years ago by Alan McGovern <[email protected]>
Removed old crap

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

356a319158f2e1470d543b0768110926f8fe2cf8 authored over 17 years ago by Alan McGovern <[email protected]>
Removed old crap

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

767f8b46be97ae2f09632fd8120f1feadfc5a037 authored over 17 years ago by Alan McGovern <[email protected]>
NUnits in the new assembly

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

a01c8601b14448c74ac7d4b64c6d2d7169b0d15a authored over 17 years ago by Alan McGovern <[email protected]>
Removed old tests.

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

54a9b77835bb9f3a868eeea54e3da592791315e8 authored over 17 years ago by Alan McGovern <[email protected]>
Split BEncoding into a seperate project to make it easier to reuse it. Moved tests to seperate project to remove dependancy on NUnit from main libraries.

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

3b8780e01c34da45e1343986ce1b019f2790414a authored over 17 years ago by Alan McGovern <[email protected]>
Removed old project file from SVN

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

6396d0325e166348fe8d45d4f955d532a1306919 authored over 17 years ago by Alan McGovern <[email protected]>
Updated Prebuild.exe and added MonoTorrent.Interface to the prebuild file in case anyone wants to extend it.

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

6dbec309f84225d46734446704a6effe6696421b authored over 17 years ago by Alan McGovern <[email protected]>
BufferManager now has "medium" buffer sizes. These were added for DHT support which will use a lot of medium sized buffers

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

1a76e5f61cd60667943b3d61257f7281096210a9 authored over 17 years ago by Alan McGovern <[email protected]>
Made blocksize a public const

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

a75af4a213acf1757debe4f540168aff26524118 authored over 17 years ago by Alan McGovern <[email protected]>
Added method to create a CompactPeer representation of the peer

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

e6b07babb2e5ed56faeed6d264296c90033b036e authored over 17 years ago by Alan McGovern <[email protected]>
Disable uPnP by default and remove the setter on UseUPnP to stop the user trying to disable upnp on the fly, this won't work.

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

b5bfedc7b5a54bdde7a2b55186ffad5f670b35c8 authored over 17 years ago by Alan McGovern <[email protected]>
Update for GetHashCode() to calculate one "properly"

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

7b7e2a6b0584e34e2bd31aed1e3f717d3bc66f5f authored over 17 years ago by Alan McGovern <[email protected]>
Try/catch placed around upnp. Search to stop crashing on vista.

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

ddcbaea28f3be9335946cf3b5a170fb2163334ad authored over 17 years ago by Alan McGovern <[email protected]>
Add autogen.sh

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

b2a27b7bb2e191be4d3e3a7d4eaf362e82cabbbd authored over 17 years ago by Miguel de Icaza <[email protected]>
Add files needed for automake

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

2536c9325ded1870606ba8d0c439bbf4044198ac authored over 17 years ago by Miguel de Icaza <[email protected]>
Updated to add the uPnp lib as a reference

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

2e9ec2638a1ff2423e2dc2ec905647efe6039ff3 authored over 17 years ago by Alan McGovern <[email protected]>
Implemented initial uPnP support using Mono.NAT. Updated ConnectionMonitor class to give more detailed stats. TorrentManager now has a dedicated ConnectionMonitor to monitor upload/download speeds for enhanced accuracy. Added more comments in ConnectionManager class.

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

15df94d072ade63c380bd6ac93a8e66748f8ba59 authored over 17 years ago by Alan McGovern <[email protected]>
Added a property to access the number of pieces currently in the write queue

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

a0ba00a022a0842c40f9e590fa13b5230265bfc6 authored over 17 years ago by Alan McGovern <[email protected]>
Updated to allow specifying if uPnP should be used or not to map ports

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

f2bde316ab6d18d456bb096a82a04123b1d6f2c1 authored over 17 years ago by Alan McGovern <[email protected]>
update to fix compatibility

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

4af0842a4b0452f3a0b2ccb7db285b6595f0cea1 authored over 17 years ago by Alan McGovern <[email protected]>
Added logging code for debugging purposes. Moved more peer logic into the PeerList class. Bugfix to make sure all references to peers are removed from the internal lists when a peer is disposed.

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

291569869f9217995a2c6825f8e7a90f6713d935 authored over 17 years ago by Alan McGovern <[email protected]>
Bugfix for repeated opening/closing of streams.

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

edbc08ab65018d79b86f0b6892275b9ee2e0c9a3 authored over 17 years ago by Alan McGovern <[email protected]>
Bugfix for RequestFastPiece. Now only requesting a fast piece if the peer actually has that piece.

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

7980dc1eba68984ce6a5f8037e02fa9e8c0d4300 authored over 17 years ago by Alan McGovern <[email protected]>
All peer lists are now stored in one class. BugFix for the Async ArgumentException. Added BufferedFileRead/Write .cs files

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

3631ffd89169182cab4543bc762e8b916787a8da authored over 17 years ago by Alan McGovern <[email protected]>
bugfix from last commit

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

213d0531ed4661d54a72e921680b06f3542f6865 authored over 17 years ago by Alan McGovern <[email protected]>
Changed default piece requests to be 12 instead of 6

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

d2e54f5d3c29a801819f77a84f12639eee559227 authored over 17 years ago by Alan McGovern <[email protected]>
Minor updates and added AllBlocksWritten property

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

39e3bd58335fc232bf7f2233c4e8ee5b83c2723b authored over 17 years ago by Alan McGovern <[email protected]>
Added new bool to show whether the block has been written to disk or not

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

ae62f64b9403b690c4cb4bd7214828f3a4eb154b authored over 17 years ago by Alan McGovern <[email protected]>
Temp fix for the NaN issue because people are bugging me about it ;) It's a horrible hack though, i need a proper fix.

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

b2bc1a1a5583bf215a729f14089c5590d42cec15 authored over 17 years ago by Alan McGovern <[email protected]>
Removed redundant code

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

534f003e8ab7d137e0886963f43b976dea38c73d authored over 17 years ago by Alan McGovern <[email protected]>
Update to make the writes fully async. They weren't really before.

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

028ef8e2f2aea513a131bd99f28c3e5c55fd7e3d authored over 17 years ago by Alan McGovern <[email protected]>
Now using fully asynchronous disk IO for writing pieces to the disk, fully asynchronous queuing of piece requests, fully asynchronous calculating if a peer is interesting or not.

Some minor CPU optimisations to avoid recalculating the "IsInteresting" property more often than...

859ff19fdb1854e7cb2886e347c5286c8553cbc8 authored over 17 years ago by Alan McGovern <[email protected]>
Removed redundant locking. Thats a bad place to put it anyway ;)

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

7be26928299cdf8ed9fb393c07f9664c3c58b29e authored over 17 years ago by Alan McGovern <[email protected]>
Added new enum value

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

00119af8fd590b333b98f8ea29bf41ea3f88dd6b authored over 17 years ago by Alan McGovern <[email protected]>
Removed extra variable

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

6dd336dcd4fe208e1bf241d418b830f705ca3881 authored over 17 years ago by Alan McGovern <[email protected]>
Bugfix: Only dispose the filestreams if they are open.

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

58f527826636abcc303f06410196734db5b19457 authored over 17 years ago by Alan McGovern <[email protected]>
Added regex to match BitTornado's alternate style

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

ec6659989fd6ece897016044c9d91de7bc42a462 authored over 17 years ago by Alan McGovern <[email protected]>
Added comments on how to safely use the library

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

0fed0cffd4088dc7b107dab094289058ba08f0f7 authored over 17 years ago by Alan McGovern <[email protected]>
Fixes for the prebuild project files. Should work in monodevelop

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

d892219eba740f428b4e54fb540318bb4ab4c9fe authored over 17 years ago by Alan McGovern <[email protected]>
Should now select the correct framework (mono 2.0) in MonoDevelop automagically

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

488aacccc1fe76edb355828b89e1533b20e0154c authored over 17 years ago by Alan McGovern <[email protected]>
prebuild.xml is now all lower case. Stupid filesystem.

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

6bc394a9f1a81977ecd9f4b8268025590bbb652e authored over 17 years ago by Alan McGovern <[email protected]>