diff options
author | Sam T <sta.cs.vsu@gmail.com> | 2013-04-24 19:44:32 +0400 |
---|---|---|
committer | Sam T <sta.cs.vsu@gmail.com> | 2013-04-24 19:44:32 +0400 |
commit | a7c82906934d7e640cda5c26448ce4fa232d2b46 (patch) | |
tree | 7a16fee4c81eeacc0c2347d263fcf11a66e46714 /src/Network/BitTorrent/PeerWire/Block.hs | |
parent | ea7947d3db0217f31dc507f930f3d9e6c6f437c0 (diff) |
+ Add BEP 6 messages.
Diffstat (limited to 'src/Network/BitTorrent/PeerWire/Block.hs')
-rw-r--r-- | src/Network/BitTorrent/PeerWire/Block.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Network/BitTorrent/PeerWire/Block.hs b/src/Network/BitTorrent/PeerWire/Block.hs index 8e4a1f24..ddbc1020 100644 --- a/src/Network/BitTorrent/PeerWire/Block.hs +++ b/src/Network/BitTorrent/PeerWire/Block.hs | |||
@@ -1,5 +1,5 @@ | |||
1 | module Network.BitTorrent.PeerWire.Block | 1 | module Network.BitTorrent.PeerWire.Block |
2 | ( BlockIx(..), Block(..) | 2 | ( BlockIx(..), Block(..), PieceIx |
3 | , BlockLIx, PieceLIx | 3 | , BlockLIx, PieceLIx |
4 | , defaultBlockSize | 4 | , defaultBlockSize |
5 | , pieceIx, blockIx | 5 | , pieceIx, blockIx |
@@ -17,7 +17,7 @@ import Data.Serialize | |||
17 | 17 | ||
18 | type BlockLIx = Int | 18 | type BlockLIx = Int |
19 | type PieceLIx = Int | 19 | type PieceLIx = Int |
20 | 20 | type PieceIx = Int | |
21 | 21 | ||
22 | data BlockIx = BlockIx { | 22 | data BlockIx = BlockIx { |
23 | -- ^ Zero-based piece index. | 23 | -- ^ Zero-based piece index. |