diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Network/Torrent/Tracker.hs | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/Network/Torrent/Tracker.hs b/src/Network/Torrent/Tracker.hs index 007f69e7..cd6d2637 100644 --- a/src/Network/Torrent/Tracker.hs +++ b/src/Network/Torrent/Tracker.hs | |||
@@ -7,7 +7,6 @@ module Network.Torrent.Tracker | |||
7 | -- * Requests | 7 | -- * Requests |
8 | , Event(..), TRequest(..) | 8 | , Event(..), TRequest(..) |
9 | , startedReq, regularReq, stoppedReq, completedReq | 9 | , startedReq, regularReq, stoppedReq, completedReq |
10 | , defaultRequest -- TODO remove export | ||
11 | 10 | ||
12 | -- * Responses | 11 | -- * Responses |
13 | , TResponse(..) | 12 | , TResponse(..) |
@@ -51,9 +50,9 @@ data TRequest = TRequest { -- TODO peer here -- TODO detach announce | |||
51 | , reqInfoHash :: InfoHash -- ^ Hash of info part of the torrent. | 50 | , reqInfoHash :: InfoHash -- ^ Hash of info part of the torrent. |
52 | , reqPeerID :: PeerID -- ^ Id of the peer doing request. () | 51 | , reqPeerID :: PeerID -- ^ Id of the peer doing request. () |
53 | , reqPort :: PortNumber -- ^ Port to listen to for connection from other peers. | 52 | , reqPort :: PortNumber -- ^ Port to listen to for connection from other peers. |
54 | , reqUploaded :: Int -- ^ # of bytes that the peer has uploaded in the swarm. | 53 | , reqUploaded :: Integer -- ^ # of bytes that the peer has uploaded in the swarm. |
55 | , reqDownloaded :: Int -- ^ # of bytes downloaded in the swarm by the peer. | 54 | , reqDownloaded :: Integer -- ^ # of bytes downloaded in the swarm by the peer. |
56 | , reqLeft :: Int -- ^ # of bytes needed in order to complete download. | 55 | , reqLeft :: Integer -- ^ # of bytes needed in order to complete download. |
57 | , reqIP :: Maybe HostAddress -- ^ The peer IP. | 56 | , reqIP :: Maybe HostAddress -- ^ The peer IP. |
58 | , reqNumWant :: Maybe Int -- ^ Number of peers that the peers wants to receive from. | 57 | , reqNumWant :: Maybe Int -- ^ Number of peers that the peers wants to receive from. |
59 | , reqEvent :: Maybe Event -- ^ If not specified, | 58 | , reqEvent :: Maybe Event -- ^ If not specified, |
@@ -181,9 +180,9 @@ data TSession = TSession { | |||
181 | -- This data is considered as dynamic within one session. | 180 | -- This data is considered as dynamic within one session. |
182 | -- | 181 | -- |
183 | data Progress = Progress { | 182 | data Progress = Progress { |
184 | prUploaded :: Int -- ^ Total amount of bytes uploaded. | 183 | prUploaded :: Integer -- ^ Total amount of bytes uploaded. |
185 | , prDownloaded :: Int -- ^ Total amount of bytes downloaded. | 184 | , prDownloaded :: Integer -- ^ Total amount of bytes downloaded. |
186 | , prLeft :: Int -- ^ Total amount of bytes left. | 185 | , prLeft :: Integer -- ^ Total amount of bytes left. |
187 | } deriving Show | 186 | } deriving Show |
188 | 187 | ||
189 | 188 | ||