]> git.rkrishnan.org Git - functorrent.git/commit
Clean up tracker network code
authorJaseem Abid <jaseemabid@gmail.com>
Sat, 11 Apr 2015 11:19:26 +0000 (16:49 +0530)
committerJaseem Abid <jaseemabid@gmail.com>
Fri, 17 Apr 2015 13:58:40 +0000 (19:28 +0530)
commit677f43e145aa2bb62f580be8b2fd72eccf212c1f
treeebfcb25bf899ac91d02f53cb1d3d26c6e3944020
parentfb7d9036a09f5df53f5d73d8e73b7cd169b112a6
Clean up tracker network code

- Made info_hash an attribute of meta info
- Refactored a `get` function
- Removed few more useless types
- Cleaned up log messages
- Remove unnecessary Url type
- Fix double urlEncode

TIL You should ideally always write total functions in Haskell.
src/FuncTorrent.hs
src/FuncTorrent/Bencode.hs
src/FuncTorrent/Logger.hs
src/FuncTorrent/Metainfo.hs
src/FuncTorrent/Peer.hs
src/FuncTorrent/Tracker.hs
src/Main.hs
test/Test.hs