diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Network/BitTorrent/Exchange/Connection.hs (renamed from src/Network/BitTorrent/Exchange/Wire.hs) | 4 | ||||
-rw-r--r-- | src/Network/BitTorrent/Exchange/Connection/Status.hs (renamed from src/Network/BitTorrent/Exchange/Wire/Status.hs) | 2 | ||||
-rw-r--r-- | src/Network/BitTorrent/Exchange/Manager.hs | 3 | ||||
-rw-r--r-- | src/Network/BitTorrent/Exchange/Session.hs | 4 |
4 files changed, 7 insertions, 6 deletions
diff --git a/src/Network/BitTorrent/Exchange/Wire.hs b/src/Network/BitTorrent/Exchange/Connection.hs index 53c9afb2..b23eb08b 100644 --- a/src/Network/BitTorrent/Exchange/Wire.hs +++ b/src/Network/BitTorrent/Exchange/Connection.hs | |||
@@ -18,7 +18,7 @@ | |||
18 | {-# LANGUAGE TemplateHaskell #-} | 18 | {-# LANGUAGE TemplateHaskell #-} |
19 | {-# LANGUAGE MultiParamTypeClasses #-} | 19 | {-# LANGUAGE MultiParamTypeClasses #-} |
20 | {-# LANGUAGE GeneralizedNewtypeDeriving #-} | 20 | {-# LANGUAGE GeneralizedNewtypeDeriving #-} |
21 | module Network.BitTorrent.Exchange.Wire | 21 | module Network.BitTorrent.Exchange.Connection |
22 | ( -- * Wire | 22 | ( -- * Wire |
23 | Connected | 23 | Connected |
24 | , Wire | 24 | , Wire |
@@ -125,8 +125,8 @@ import System.Timeout | |||
125 | import Data.Torrent.Bitfield as BF | 125 | import Data.Torrent.Bitfield as BF |
126 | import Data.Torrent.InfoHash | 126 | import Data.Torrent.InfoHash |
127 | import Network.BitTorrent.Core | 127 | import Network.BitTorrent.Core |
128 | import Network.BitTorrent.Exchange.Connection.Status | ||
128 | import Network.BitTorrent.Exchange.Message as Msg | 129 | import Network.BitTorrent.Exchange.Message as Msg |
129 | import Network.BitTorrent.Exchange.Wire.Status | ||
130 | 130 | ||
131 | -- TODO handle port message? | 131 | -- TODO handle port message? |
132 | -- TODO handle limits? | 132 | -- TODO handle limits? |
diff --git a/src/Network/BitTorrent/Exchange/Wire/Status.hs b/src/Network/BitTorrent/Exchange/Connection/Status.hs index d1b60f11..b4b10371 100644 --- a/src/Network/BitTorrent/Exchange/Wire/Status.hs +++ b/src/Network/BitTorrent/Exchange/Connection/Status.hs | |||
@@ -9,7 +9,7 @@ | |||
9 | -- sides. | 9 | -- sides. |
10 | -- | 10 | -- |
11 | {-# LANGUAGE TemplateHaskell #-} | 11 | {-# LANGUAGE TemplateHaskell #-} |
12 | module Network.BitTorrent.Exchange.Wire.Status | 12 | module Network.BitTorrent.Exchange.Connection.Status |
13 | ( -- * Peer status | 13 | ( -- * Peer status |
14 | PeerStatus(..) | 14 | PeerStatus(..) |
15 | , choking | 15 | , choking |
diff --git a/src/Network/BitTorrent/Exchange/Manager.hs b/src/Network/BitTorrent/Exchange/Manager.hs index 52a51a8d..f7f3cea7 100644 --- a/src/Network/BitTorrent/Exchange/Manager.hs +++ b/src/Network/BitTorrent/Exchange/Manager.hs | |||
@@ -14,8 +14,9 @@ import Network.Socket | |||
14 | 14 | ||
15 | import Data.Torrent.InfoHash | 15 | import Data.Torrent.InfoHash |
16 | import Network.BitTorrent.Core | 16 | import Network.BitTorrent.Core |
17 | import Network.BitTorrent.Exchange.Connection hiding (Options) | ||
17 | import Network.BitTorrent.Exchange.Session | 18 | import Network.BitTorrent.Exchange.Session |
18 | import Network.BitTorrent.Exchange.Wire hiding (Options) | 19 | |
19 | 20 | ||
20 | data Options = Options | 21 | data Options = Options |
21 | { optBacklog :: Int | 22 | { optBacklog :: Int |
diff --git a/src/Network/BitTorrent/Exchange/Session.hs b/src/Network/BitTorrent/Exchange/Session.hs index f9e8433f..a0eaadaa 100644 --- a/src/Network/BitTorrent/Exchange/Session.hs +++ b/src/Network/BitTorrent/Exchange/Session.hs | |||
@@ -46,11 +46,11 @@ import Data.Torrent.Piece | |||
46 | import qualified Data.Torrent.Piece as Torrent (Piece ()) | 46 | import qualified Data.Torrent.Piece as Torrent (Piece ()) |
47 | import Network.BitTorrent.Core | 47 | import Network.BitTorrent.Core |
48 | import Network.BitTorrent.Exchange.Block as Block | 48 | import Network.BitTorrent.Exchange.Block as Block |
49 | import Network.BitTorrent.Exchange.Connection | ||
50 | import Network.BitTorrent.Exchange.Connection.Status | ||
49 | import Network.BitTorrent.Exchange.Message as Message | 51 | import Network.BitTorrent.Exchange.Message as Message |
50 | import Network.BitTorrent.Exchange.Session.Metadata as Metadata | 52 | import Network.BitTorrent.Exchange.Session.Metadata as Metadata |
51 | import Network.BitTorrent.Exchange.Session.Status as SS | 53 | import Network.BitTorrent.Exchange.Session.Status as SS |
52 | import Network.BitTorrent.Exchange.Wire | ||
53 | import Network.BitTorrent.Exchange.Wire.Status | ||
54 | import System.Torrent.Storage | 54 | import System.Torrent.Storage |
55 | 55 | ||
56 | {----------------------------------------------------------------------- | 56 | {----------------------------------------------------------------------- |