summaryrefslogtreecommitdiff
path: root/src/Network/BitTorrent/Exchange
diff options
context:
space:
mode:
authorSam Truzjan <pxqr.sta@gmail.com>2014-03-03 03:09:34 +0400
committerSam Truzjan <pxqr.sta@gmail.com>2014-03-03 03:09:34 +0400
commit863f7a236b86f562309748273f3087035a999ee7 (patch)
treeb0ccfad4cc73ec0033674094a12e53203b05c0c9 /src/Network/BitTorrent/Exchange
parent9bd27cd068591446ff9026420654de14d58e0841 (diff)
Rename Wire.hs to Connection.hs
Diffstat (limited to 'src/Network/BitTorrent/Exchange')
-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.hs3
-rw-r--r--src/Network/BitTorrent/Exchange/Session.hs4
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 #-}
21module Network.BitTorrent.Exchange.Wire 21module Network.BitTorrent.Exchange.Connection
22 ( -- * Wire 22 ( -- * Wire
23 Connected 23 Connected
24 , Wire 24 , Wire
@@ -125,8 +125,8 @@ import System.Timeout
125import Data.Torrent.Bitfield as BF 125import Data.Torrent.Bitfield as BF
126import Data.Torrent.InfoHash 126import Data.Torrent.InfoHash
127import Network.BitTorrent.Core 127import Network.BitTorrent.Core
128import Network.BitTorrent.Exchange.Connection.Status
128import Network.BitTorrent.Exchange.Message as Msg 129import Network.BitTorrent.Exchange.Message as Msg
129import 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 #-}
12module Network.BitTorrent.Exchange.Wire.Status 12module 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
15import Data.Torrent.InfoHash 15import Data.Torrent.InfoHash
16import Network.BitTorrent.Core 16import Network.BitTorrent.Core
17import Network.BitTorrent.Exchange.Connection hiding (Options)
17import Network.BitTorrent.Exchange.Session 18import Network.BitTorrent.Exchange.Session
18import Network.BitTorrent.Exchange.Wire hiding (Options) 19
19 20
20data Options = Options 21data 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
46import qualified Data.Torrent.Piece as Torrent (Piece ()) 46import qualified Data.Torrent.Piece as Torrent (Piece ())
47import Network.BitTorrent.Core 47import Network.BitTorrent.Core
48import Network.BitTorrent.Exchange.Block as Block 48import Network.BitTorrent.Exchange.Block as Block
49import Network.BitTorrent.Exchange.Connection
50import Network.BitTorrent.Exchange.Connection.Status
49import Network.BitTorrent.Exchange.Message as Message 51import Network.BitTorrent.Exchange.Message as Message
50import Network.BitTorrent.Exchange.Session.Metadata as Metadata 52import Network.BitTorrent.Exchange.Session.Metadata as Metadata
51import Network.BitTorrent.Exchange.Session.Status as SS 53import Network.BitTorrent.Exchange.Session.Status as SS
52import Network.BitTorrent.Exchange.Wire
53import Network.BitTorrent.Exchange.Wire.Status
54import System.Torrent.Storage 54import System.Torrent.Storage
55 55
56{----------------------------------------------------------------------- 56{-----------------------------------------------------------------------