summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-01-05Remove orphan dependenciesSam Truzjan
2014-01-05Check size of last piece properly (in writePiece)Sam Truzjan
2014-01-05Add storage streamingSam Truzjan
2014-01-05Add totalPieces functionSam Truzjan
2014-01-05Make Torrent(tAnnounce) field optionalSam Truzjan
2014-01-05Use proper address family when creating Socket from (PeerAddr IP)Daniel Gröber
2014-01-05Prettify bitfield export listSam Truzjan
2014-01-05Add Bitfield.full functionSam Truzjan
2014-01-05Use exceptions instead of return valueSam Truzjan
2014-01-05Merge command options with command flagsSam Truzjan
2014-01-05Move mktorrent sources to this pkgSam Truzjan
2014-01-04Add examples flag to cabalSam Truzjan
2014-01-04Move mutable state in Connection to single field and make a MonadState ↵Daniel Gröber
instance for (Connected IO a) ..also add lenses
2014-01-04Add type 'Cached a' for caching the binary represntation of bencodable ↵Daniel Gröber
datastructures
2014-01-04Test against rtorrent's dht server when enabledDaniel Gröber
2014-01-04Run bittorrent-client in res/ so it can seed the testfileDaniel Gröber
2014-01-04Turns out network's send/recv do use GHC's fd manager stuffDaniel Gröber
Conflicts: TODO.org
2014-01-04Add tests for instance Serialize IPDaniel Gröber
2014-01-04Add some dev scriptsDaniel Gröber
2014-01-03Ignore torrent filesSam Truzjan
2014-01-03Add basic gettorrent implementationSam Truzjan
2014-01-03Add getMetadata functionSam Truzjan
2014-01-03Add skeleton for gettorrent exampleSam Truzjan
2014-01-02Update Routing table testSam Truzjan
2014-01-02Implement DHT lookup operationSam Truzjan
2014-01-02Stop bootstrapping when table is fullSam Truzjan
2014-01-02Add bucket count optionSam Truzjan
2014-01-02Fix query timeoutsSam Truzjan
2014-01-02Remove useless insertNode callSam Truzjan
2014-01-02Add non operator version of (<@>)Sam Truzjan
2014-01-02Use optTimeout option in each rpc callSam Truzjan
2014-01-02Use K parameter in DHT sessionSam Truzjan
2014-01-02Add DHT optionsSam Truzjan
2014-01-02Add documentation to the root DHT moduleSam Truzjan
2014-01-02Add documentation to RoutingSam Truzjan
2014-01-01Add PieceHash type synonymSam Truzjan
2014-01-01Rename HashArray to HashList.Sam Truzjan
Hash list is well established name for this kind of objects. Also `hash array' sometimes refer for `hash table's but not `hash list's.
2013-12-31Add default instance for NodeAddrSam Truzjan
2013-12-30Add module header to DHT MessagesSam Truzjan
2013-12-30Add documentation to Token moduleSam Truzjan
2013-12-30Add basic spec for token mapSam Truzjan
2013-12-29Fix typoSam Truzjan
2013-12-29Enable all query handlers by defaultSam Truzjan
2013-12-29Add hashable instances for all address typesSam Truzjan
2013-12-29Fix instance Alternative RoutingSam Truzjan
2013-12-29Keep routing table in MVar.Sam Truzjan
Since table updates is not atomic operations and may perform IO we should be able to gain /exclusive/ access to the table. Consider insertNode function: 1) Thread A read table_1; 2) Thread B read table_1; 3) Thread B ping node Z and it does not respond and get removed; 4) Thread B remove node Z from table_1 and get table_2; 5) Thread B put table_2; 6) Thread A insert a new node and get table_3; 4) Thread A put table_3; The problem is that final table_3 do have the removed node. At the moment, exclusive access solves this problem.
2013-12-28Add instance Alternative RoutingSam Truzjan
2013-12-28Simplify Routing monadSam Truzjan
2013-12-28Add routing table shapeSam Truzjan
2013-12-28Drop old node if it is not respondingSam Truzjan