diff options
author | Sam Truzjan <pxqr.sta@gmail.com> | 2013-11-30 15:36:21 +0400 |
---|---|---|
committer | Sam Truzjan <pxqr.sta@gmail.com> | 2013-11-30 15:36:21 +0400 |
commit | baff7fbe8a491ce743b3fe2eef0e00ee37ee5c98 (patch) | |
tree | 208246fe0ce3f0ce8caf07f62997e551abc17865 /src/Network/BitTorrent/Tracker/RPC/UDP.hs | |
parent | 915dab01a9aefd59497ea97e76b45db3a865635f (diff) |
Use http-conduit instead of HTTP package
Diffstat (limited to 'src/Network/BitTorrent/Tracker/RPC/UDP.hs')
-rw-r--r-- | src/Network/BitTorrent/Tracker/RPC/UDP.hs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/Network/BitTorrent/Tracker/RPC/UDP.hs b/src/Network/BitTorrent/Tracker/RPC/UDP.hs index bb5fe7e3..16e80c87 100644 --- a/src/Network/BitTorrent/Tracker/RPC/UDP.hs +++ b/src/Network/BitTorrent/Tracker/RPC/UDP.hs | |||
@@ -15,13 +15,13 @@ | |||
15 | {-# LANGUAGE TypeFamilies #-} | 15 | {-# LANGUAGE TypeFamilies #-} |
16 | module Network.BitTorrent.Tracker.RPC.UDP | 16 | module Network.BitTorrent.Tracker.RPC.UDP |
17 | ( UDPTracker | 17 | ( UDPTracker |
18 | , putTracker | ||
19 | |||
20 | -- * RPC | ||
18 | , connect | 21 | , connect |
19 | , announce | 22 | , announce |
20 | , scrape | 23 | , scrape |
21 | , retransmission | 24 | , retransmission |
22 | |||
23 | -- * Debug | ||
24 | , putTracker | ||
25 | ) where | 25 | ) where |
26 | 26 | ||
27 | import Control.Applicative | 27 | import Control.Applicative |
@@ -246,8 +246,6 @@ call addr arg = bracket open close rpc | |||
246 | throwIO $ userError "address mismatch" | 246 | throwIO $ userError "address mismatch" |
247 | return res | 247 | return res |
248 | 248 | ||
249 | -- TODO retransmissions | ||
250 | -- TODO blocking | ||
251 | data UDPTracker = UDPTracker | 249 | data UDPTracker = UDPTracker |
252 | { trackerURI :: URI | 250 | { trackerURI :: URI |
253 | , trackerConnection :: IORef Connection | 251 | , trackerConnection :: IORef Connection |