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

This method should be internal too.

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

08492bbcc5b93c10000aea2c25af3218a04c3913 authored almost 16 years ago by Alan McGovern <[email protected]>
Rename Start to Initialise (thanks Olivier). Removed unnecessary public API.

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

e4ce35cbbfc1015be98d6172773e3ffc41a43301 authored almost 16 years ago by Alan McGovern <[email protected]>
Cosmetic - Alphabetise the methods

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

46757b47fd364b11f82dac9a7afed579bab8ceaa authored almost 16 years ago by Alan McGovern <[email protected]>
More namespace/public api cleanups

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

0e73ea1e99b841b84e19f55735ab5976dad338ba authored almost 16 years ago by Alan McGovern <[email protected]>
Clean up the public DHT api

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

7475fed4b6ade53c534d9e75b74396cd1ae4397c authored almost 16 years ago by Alan McGovern <[email protected]>
Nuke old file

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

d13cce488fc8f9fb2c1824f038da33a8bacb6a01 authored almost 16 years ago by Alan McGovern <[email protected]>
Fixed an issue where relative paths were being used instead of absolute paths. Added two tests to ensure that this is fixed. Thanks to René Brüntrup.

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

da73c3cc19782d7fb852a2e80b81901316e14799 authored almost 16 years ago by Alan McGovern <[email protected]>
Add IDisposable to items that need to be disposed. This ensures that classes which utilise the mainloop will unregister from the mainloop correctly.

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

5e5e6e56c949d736bf24dae4f1ed7e6dd32273d7 authored almost 16 years ago by Alan McGovern <[email protected]>
When engine is disposed, stop the timeouts

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

679de1b25ff8657d6c47e7988f5393a3534f728b authored almost 16 years ago by Alan McGovern <[email protected]>
Renamespace the tests

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

9d9dc0804ceb8467f81551109f5e4ffc06035e24 authored almost 16 years ago by Alan McGovern <[email protected]>
Fix a few failing tests.

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

c0ebfdf28f14dd2ac7043ac0c6685c679c17690f authored almost 16 years ago by Alan McGovern <[email protected]>
Updated test to work with recent change to the testrig

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

c07c8913509b4357148257fa30389e404eab8c5c authored almost 16 years ago by Alan McGovern <[email protected]>
TorrentCreator.cs - Fix a bug when creating singlefile torrents

Torrent.cs - Fix bug when parsing torrents with multiple trackers
TorrentCreatorTests.cs - Add ne...

c55ab27457b0e8f304b84699713389888f9493d7 authored almost 16 years ago by Alan McGovern <[email protected]>
Renamespace some tests

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

51c193fbfb666a3bb8ca4f5b4ea32bb9701b0d52 authored almost 16 years ago by Alan McGovern <[email protected]>
Ensure calls to AsyncCleanup always route through the mainloop

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

716c9206d984041dbfd25a8c54e0cf1567b4cb40 authored almost 16 years ago by Alan McGovern <[email protected]>
Updated the Nunit tests

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

77cc990b9399689dc01419eaceb9ee9933cbd53c authored almost 16 years ago by Alan McGovern <[email protected]>
Ensure the piece picker doens't pick pieces which don't exist. Add NUnit test to verify changes.

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

3a5945a003c85e33b9395f10ab23ad4f33e99974 authored almost 16 years ago by Alan McGovern <[email protected]>
Add a new test to the build to test for regressions in message handling

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

7d2d4346590afbceaecbebc1a27fdff4fc49d375 authored almost 16 years ago by Alan McGovern <[email protected]>
Fix regression from r116474. Message sending/receiving works again

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

0dcfcc4c4a8e1f206d3b0fc5aab2284788763560 authored almost 16 years ago by Alan McGovern <[email protected]>
Ensure that the speedmonitor for the tracker is always ticked. Ensure that it stops ticking when the tracker is disposed. Ensure no responses are handled when the tracker is disposed and a listener is left registered.

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

6781c3ef547f80214848da7dc36b7ab264624c57 authored about 16 years ago by Alan McGovern <[email protected]>
Add public property for Disposed

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

ada75006942e503eb6a94d95107aae03064e1151 authored about 16 years ago by Alan McGovern <[email protected]>
Ensure that the engine stops ticking when it's disposed.

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

3cfe3adae667907b49e3a15083090c9330a93007 authored about 16 years ago by Alan McGovern <[email protected]>
Move download/upload speed calculation inside NetworkIO for greater accuracy.

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

724348c394e0c703182e9ddd0b9b8b78625d218d authored about 16 years ago by Alan McGovern <[email protected]>
Put the lock in the right place.

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

6ab5e9fc2067634fbd5d58114612282bd6ece2b1 authored about 16 years ago by Alan McGovern <[email protected]>
Remove more old code now that NetworkIO handles rate limiting.

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

903baf9a8d5d070c94d07c0afecd846c8f08f506 authored about 16 years ago by Alan McGovern <[email protected]>
PeerExchanging should only tick every minute.

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

2968a4dc32244830b70318711cc4aa7c779393a1 authored about 16 years ago by Alan McGovern <[email protected]>
Updated LTChat support to send the correct message id.

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

361d3f555a308d8f5d20c9c7e9bb1851b1864870 authored about 16 years ago by Alan McGovern <[email protected]>
When sending an extension message, the ID that peer choose should be sent as opposed to the local ID.

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

333988acbee910a7c9a5e34e35559ea9c179ae40 authored about 16 years ago by Alan McGovern <[email protected]>
Add a missing lock

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

72b0eade7f80674114844b4d185c2e940b0ddd03 authored about 16 years ago by Alan McGovern <[email protected]>
Better implementation for Encode/ByteLength

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

59d441d75a62033a4118cf8fe63b8364d8ccb94f authored about 16 years ago by Alan McGovern <[email protected]>
Nuke some obsolete methods.

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

66036f7dfb18e59892a52669fe262c061b215bf9 authored about 16 years ago by Alan McGovern <[email protected]>
Decrement before calling BeginXXX in case the call completes syncronously

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

0a1a77f0abb4557effa0da358d4502c1982145c6 authored about 16 years ago by Alan McGovern <[email protected]>
Commit fix for ultra-slow transfers. Socket IO is independent of the mainloop, as it used to be.

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

378e761f2d3ed7a1f42f8a7f8eb24eb8b80a5f17 authored about 16 years ago by Alan McGovern <[email protected]>
Cosmetic fix.

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

d210b94fc2933868618bf9db851f97038b115a59 authored about 16 years ago by Alan McGovern <[email protected]>
Add some missing files

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

fb39ff18f8646915a1948d504448b670f51e2ea9 authored about 16 years ago by Alan McGovern <[email protected]>
Make test execute as fast as possible to help reveal any race conditions

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

37b91f214ac69390cf6be1933eeca1ba8bed0b5e authored about 16 years ago by Alan McGovern <[email protected]>
Make the test a little more explicit

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

125c6c5a5da6fd09c1f8e1d3183df6225ade6e73 authored about 16 years ago by Alan McGovern <[email protected]>
Fix race condition

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

cac6cd445fa5023dd081b6cc94d463b7e8ddb679 authored about 16 years ago by Alan McGovern <[email protected]>
Enable DelegateTask reuse when not using a timed callback.

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

780bbb747bfff98408d77d5f1e796cd21b72169b authored about 16 years ago by Alan McGovern <[email protected]>
Disable DelegateTask reuse as that code is broken. You can end up using the same one multiple times simultaenously.

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

7da44a7ceb10f9c00bce123c68d084443ffc4619 authored about 16 years ago by Alan McGovern <[email protected]>
Instead of shifting by 1 byte every time when syncing the window, calculate how many bytes can be discarded and shift by that amount.

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

bf63b2d791901274694e29bb1a70f974bff14834 authored about 16 years ago by Alan McGovern <[email protected]>
Ensure that the handshaking will alway time out in a reasonable amount of time.

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

d1ebe1b19b3f2a9daecf9bae1d75fc5b1756d1eb authored about 16 years ago by Alan McGovern <[email protected]>
Add the ability to report an alternate IP/Port combo to the tracker.

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

4c15f381951b5539473447f9cfeecd0af3032133 authored about 16 years ago by Alan McGovern <[email protected]>
Removing 3rd party code as the license is not FOSS compatible.

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

fca5037281e9d82f1f527a867334699138fe07b1 authored about 16 years ago by Alan McGovern <[email protected]>
Add missing license headers to some files.

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

68c1c256c41fb4bd4e65213e54bcf19d3df0efb1 authored about 16 years ago by Alan McGovern <[email protected]>
Add NtfsSparseFile to the build.

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

dac5c650d06e0468197456bf5671bf0aebde2d01 authored about 16 years ago by Alan McGovern <[email protected]>
Port to the new API

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

4e0bd294e064c02437a58401a7038374ff26b6f7 authored about 16 years ago by Miguel de Icaza <[email protected]>
Add sources for curses version here

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

1af417c79965fbd6a8c906bc00ae2a1bf00aacc9 authored about 16 years ago by Miguel de Icaza <[email protected]>
Committing sparse file support for the NTFS filesystem. Implementation inspired by blog article by Anton Delsink.

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

138df97beafd2b9c9093d7bc9d5f997bdc9880a4 authored about 16 years ago by Alan McGovern <[email protected]>
Cleaned up some of the extra useless data in the logging

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

6cae077c4f4f0cbf4ff986b326acf6bcbd71c670 authored about 16 years ago by Alan McGovern <[email protected]>
Don't clone the buffer, just save/restore the values.

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

6df75dacdebe3ae37e36d7b12426d0c8fdbc0f31 authored about 16 years ago by Alan McGovern <[email protected]>
Use for loop as this is very commonly called.

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

34bce8b902146c50883e12b27c7b8bd7c245b1f9 authored about 16 years ago by Alan McGovern <[email protected]>
Fix race condition, if the connect completes synchronously the result won't be stored yet. Use supplied one instead, its the same.

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

d59abd974eff32b2d818e302f3db7fa6802c4781 authored about 16 years ago by Alan McGovern <[email protected]>
Implement a better ToString

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

0681a654c4fe84dbbb30ed88e775fac1732d62be authored about 16 years ago by Alan McGovern <[email protected]>
Fix lock of scrapes list

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

9e12df615006e94837d25aca83daa8635cdd44eb authored about 16 years ago by Olivier Dufour <[email protected]>
Bug fix dht version!

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

968c3172606f49f7c7579631cab20b64d7dc43db authored about 16 years ago by Olivier Dufour <[email protected]>
Use SHA1.Create () rather than explicitly defining the class used.

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

f75227c242af0480726167f0cbead18c35a71407 authored about 16 years ago by Alan McGovern <[email protected]>
Ditch old crap tests, add some useful ones back into the build.

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

85de6b8f9101f5366bfd8eef92372d04050d48bc authored about 16 years ago by Alan McGovern <[email protected]>
Add the BEncoding tests back into the build.

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

78d827d81cde8b7380e6f05564f216e170e2d2e9 authored about 16 years ago by Alan McGovern <[email protected]>
Whoops, should return false.

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

95b6efe28dbea63ecca5eb9229df879288a9837f authored about 16 years ago by Alan McGovern <[email protected]>
Proxy tracker completion events to the mainloop

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

bb28e3308dd00caf666f768ae9cb956cb46e8073 authored about 16 years ago by Alan McGovern <[email protected]>
Implement my own timeout on HTTPRequests.

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

5f46211c00477413cd2c08601aa66097245d73be authored about 16 years ago by Alan McGovern <[email protected]>
Removed a bunch of unnecessary syncing to the main loop.

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

f5b0b76cf78adfaf5918c9bb9b1d88eadb31c949 authored about 16 years ago by Alan McGovern <[email protected]>
Cancel lost requests once a second rather than several dozen times a second.

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

f0a159540a1f0a6e0be08a6e7e8b4f31eda0f7e7 authored about 16 years ago by Alan McGovern <[email protected]>
Commit a test for the tracker code to ensure callbacks are invoked.

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

bc0e32a579ae13a5a9bb58b59333a5e6ea1ea1c5 authored about 16 years ago by Alan McGovern <[email protected]>
Don't sync to the mainloop between each call to send/receive. Only sync when the entire message has been sent/received.

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

da57b4e635852041215b084ea3757fcd96047e6d authored about 16 years ago by Alan McGovern <[email protected]>
Ensure the SpeedMonitor is updated regularly fixes a regression where announces/sec weren't being calculated.

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

782a362d824203dcb50bcea087178cbd639ae57f authored about 16 years ago by Alan McGovern <[email protected]>
Misc refactoring to make the API a bit more obvious.

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

2b5970be95040b479d2be9866750be7c05c8c857 authored about 16 years ago by Alan McGovern <[email protected]>
Ensure exceptions are propagated back to calling code when a blocking task is executed.

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

b702c8ca162799ceb5628ee9833c552c11b507d4 authored about 16 years ago by Alan McGovern <[email protected]>
Typo - Added the DhtVersion with the wrong key.

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

1e9f36270235b09731c1fdc0fb99c2decf8117c4 authored about 16 years ago by Alan McGovern <[email protected]>
Add tests to ensure that invalid FastPiece messages and SuggestedPiece messages don't explode the engine. Fixed the implementation of RemoveOwnedPieces to ignore invalid piece indicies.

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

fa36445379bc2d9c070f178b02dc4a91168a4534 authored about 16 years ago by Alan McGovern <[email protected]>
Fix compilation issue and uncommented the setup method

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

2c45dca696b3363887a46b7ecf04b18878e86c09 authored about 16 years ago by Alan McGovern <[email protected]>
Added NUnit tests for decoding peer details.

Fixed bug in DecodeDictionary where the ':' seperator between ipaddress and port was missing.

F...

353f9e4225a73988cffdf04425f554993a28170f authored about 16 years ago by Alan McGovern <[email protected]>
It's safe to start processing the queue at this stage.

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

172ff7c89d01337089077e17e04dea5f740f4d4d authored about 16 years ago by Alan McGovern <[email protected]>
Allocate 27 bytes to the stringbuilder - max possible size of the resultant string. Typically at least one string will reach that when decoding a group of 50.

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

acb56272289ea416fc4ce2c2f050eed0621f659a authored about 16 years ago by Alan McGovern <[email protected]>
Add support for the libtorrent extension to allow identification of other clients.

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

381bb87bed6751c12fd4aa300e651a3390d640aa authored about 16 years ago by Alan McGovern <[email protected]>
Bump the version

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

13f6f1fdb1a8f121979b880906501911abbce1c9 authored about 16 years ago by Alan McGovern <[email protected]>
Add back API lost in a refactor.

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

0c5dacab85a8af24f71ba549c0dd159a5c3698c3 authored about 16 years ago by Alan McGovern <[email protected]>
Add ability to see where peers are being added from (Dht/Tracker/PeerExchange)

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

6411d72d7b261da019433e5da0738ee1e85cd903 authored about 16 years ago by Alan McGovern <[email protected]>
Peers are the same if they come from the same IP address

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

c583b43c5ce376c321b53d14a1d71968a563355a authored about 16 years ago by Alan McGovern <[email protected]>
Simplify the logic used to decide if a socket connection is dead. Only need to check if succeeded == true.

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

c06a82f5b40a4a9300c6f607b379371ef3fd42b1 authored about 16 years ago by Alan McGovern <[email protected]>
Revert the handle closing change - it's unnecessary

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

698290f2cdf02ac579c12f61e70450a6fcbb3cfa authored about 16 years ago by Alan McGovern <[email protected]>
Ensure the messagequeue is processed.

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

6af456b797df3544bc9c9f601c610ff9f71896d4 authored about 16 years ago by Alan McGovern <[email protected]>
Ensure waithandles are closed. A Send/Receive can only be successful if more than 0 bytes were transferred. Reuse the EndSend and EndReceive AsyncCallbacks. There's no need to sync to the mainloop on a call to EnqueueSend/EnqueueReceive

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

06fad816b8c54b7a766c2480d37885247efe1fad authored about 16 years ago by Alan McGovern <[email protected]>
Reuse DelegateTask objects to reduce memory consumption.

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

132b7460bbd5bcfd7ee7f4566b7b0c3890875830 authored about 16 years ago by Alan McGovern <[email protected]>
Instantiate the regexes once.

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

086ff2c556000645d5c734f9e8b108fd78c39d8b authored about 16 years ago by Alan McGovern <[email protected]>
Fix bug where two messages could be sent at the same time when a new outgoing connection has been created. Simplified the logic to decide when a message can be sent.

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

64068c953b7b8cf6c217e6c0ff622a6f46e83529 authored about 16 years ago by Alan McGovern <[email protected]>
Revert the priority change as it's broken.

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

ff00dce290a29adac518aa2d64ea64a928864c96 authored about 16 years ago by Alan McGovern <[email protected]>
The waithandle is disposed of after each execution, so null it out.

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

843c3d97b1a41db6ad1627a729dd99473d230f9d authored about 16 years ago by Alan McGovern <[email protected]>
Dht messages can be lienently decoded too.

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

ecc271cfd9082a76012ef3c5a3b3a87f17f2a7f3 authored about 16 years ago by Alan McGovern <[email protected]>
Add ability to leniently decode BEncodedDictionaries so as to maintain compatibility with the many broken clients out there where possible.

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

56a810ab49a5fe4f39c0e4fb977ae2ccaf34dc78 authored about 16 years ago by Alan McGovern <[email protected]>
Whoops, left out IListener from the last commit

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

0a14e41b199f82297ba6b7852821869fad8f5ee5 authored about 16 years ago by Alan McGovern <[email protected]>
Blocking tasks should have a higher priority than non-blocking tasks.

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

87106f8857c98e668586cd95ed227cb1537c7f5e authored about 16 years ago by Alan McGovern <[email protected]>
Don't sync on the IOLoop to add a buffered read/write.

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

a8a7918b9333c8a5b09323ed7ed82b8d7e696acb authored about 16 years ago by Alan McGovern <[email protected]>
Small optimisation: No need to create a new DelegateTask every time the timeout task executes.

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

33f4bf025b59a0c4c3732977476d38c9527f380d authored about 16 years ago by Alan McGovern <[email protected]>
Default status is NotListening.

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

3a37726ae1246f33d8df158242683be3d77def49 authored about 16 years ago by Alan McGovern <[email protected]>
Update tests to pass with the new API.

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

f94a46f6f5420daee4fd9dea21c55a0abf3d325f authored about 16 years ago by Alan McGovern <[email protected]>
Committed better tests. Not prone to race conditions

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

33b50fe0bc16408b2aa7da70c90550930a5d8058 authored about 16 years ago by Alan McGovern <[email protected]>
UdpListener and SocketListener inherit from a common base class. Removed depreciated ConnectionListenerBase. Fixed several casting bugs due to the change in Toolbox.Accumulate<T>.

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

9f58049d71741615807b0188dff5c501e88e3266 authored about 16 years ago by Alan McGovern <[email protected]>
Fix int overflow on large torrents

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

b4ce35ea14c3e615b97511b00cc0bfd4a195575d authored about 16 years ago by Alan McGovern <[email protected]>