diff options
author | Sam T <pxqr.sta@gmail.com> | 2013-05-25 21:41:15 +0400 |
---|---|---|
committer | Sam T <pxqr.sta@gmail.com> | 2013-05-25 21:41:15 +0400 |
commit | 5e92eec501e0a1ca6d09a01e078cf54ff3277273 (patch) | |
tree | 09879470eb7a5cd73c80bd2c84e589bd7e58b052 /src/Network | |
parent | 12769d2f1cfc29e08c4e451d3b65db81cfeb9cac (diff) |
~ Use PortNumber instead of Word16 in Port message.
Diffstat (limited to 'src/Network')
-rw-r--r-- | src/Network/BitTorrent/PeerWire/Message.hs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Network/BitTorrent/PeerWire/Message.hs b/src/Network/BitTorrent/PeerWire/Message.hs index 1c520221..5544dca7 100644 --- a/src/Network/BitTorrent/PeerWire/Message.hs +++ b/src/Network/BitTorrent/PeerWire/Message.hs | |||
@@ -6,13 +6,13 @@ module Network.BitTorrent.PeerWire.Message | |||
6 | 6 | ||
7 | import Control.Applicative | 7 | import Control.Applicative |
8 | import qualified Data.ByteString as B | 8 | import qualified Data.ByteString as B |
9 | |||
10 | import Data.Serialize | 9 | import Data.Serialize |
10 | import Network | ||
11 | 11 | ||
12 | import Network.BitTorrent.PeerWire.Block | 12 | import Network.BitTorrent.PeerWire.Block |
13 | import Data.Bitfield | 13 | import Data.Bitfield |
14 | 14 | ||
15 | import Data.Array | 15 | |
16 | 16 | ||
17 | -- | Messages used in communication between peers. | 17 | -- | Messages used in communication between peers. |
18 | -- | 18 | -- |
@@ -48,7 +48,7 @@ data Message = KeepAlive | |||
48 | -- used during "End Game". | 48 | -- used during "End Game". |
49 | | Cancel BlockIx | 49 | | Cancel BlockIx |
50 | 50 | ||
51 | | Port Int | 51 | | Port PortNumber |
52 | 52 | ||
53 | -- | BEP 6: Then peer have all pieces it might send the | 53 | -- | BEP 6: Then peer have all pieces it might send the |
54 | -- 'HaveAll' message instead of 'Bitfield' | 54 | -- 'HaveAll' message instead of 'Bitfield' |