From 5573c240b4c2e87cf2deb55939591edd0851f8b8 Mon Sep 17 00:00:00 2001 From: Sam Truzjan Date: Sat, 30 Nov 2013 13:06:09 +0400 Subject: Add basic spec for UDP tracker RPC --- src/Network/BitTorrent/Tracker/RPC/Message.hs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/Network/BitTorrent/Tracker/RPC/Message.hs') diff --git a/src/Network/BitTorrent/Tracker/RPC/Message.hs b/src/Network/BitTorrent/Tracker/RPC/Message.hs index 18c1a4c7..a0691f37 100644 --- a/src/Network/BitTorrent/Tracker/RPC/Message.hs +++ b/src/Network/BitTorrent/Tracker/RPC/Message.hs @@ -482,6 +482,7 @@ parseFailureStatus = mkStatus <$> parseFailureCode <*> parseFailureMessage type ScrapeQuery = [InfoHash] +-- TODO rename to ScrapeEntry -- | Overall information about particular torrent. data ScrapeInfo = ScrapeInfo { -- | Number of seeders - peers with the entire file. @@ -501,6 +502,7 @@ data ScrapeInfo = ScrapeInfo { $(deriveJSON (L.map toLower . L.dropWhile isLower) ''ScrapeInfo) -- TODO hash map +-- TODO rename to ScrapeInfo -- | Scrape info about a set of torrents. type Scrape = Map InfoHash ScrapeInfo -- cgit v1.2.3